Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] Remove ext/mysql from trunk? (was: Re: [PHP-DEV] Remove sqlite2 from trunk) [RSS Feed]

#1 June 19, 2010 12:01:34

Johannes S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Remove ext/mysql from trunk? (was: Re: [PHP-DEV] Remove sqlite2 from trunk)


On Sat, 2010-06-19 at 12:45 +0200, Sebastian Bergmann wrote:
> Am 19.06.2010 11:33, schrieb Patrick ALLAERT:
> > What are the possible actions/alternatives?
>
> I think this was already mentioned: add a BC layer to ext/mysqli so
> that the "new" extension supports the old mysql_* functions. This would
> rid us off the old ext/mysql code without breaking code that relies on
> it.

... while such a wrapper has about the same amount of code as the
classic mysql extension (... which is in most parts a simple wrapper
over library functions...) Or in other words: Such a wrapper doesn't
have real benefits.

What might be interesting is to write the wrapper in 100% PHP on top of
mysqli. that gives an easy migration path (include/auto_prepend that
lib) and makes the purpose clear ... (while there is one major
limitation with such an approach: The old mysql extension uses resources
whereas mysqli uses objects, so $conn = mysql_connect();
var_dump(is_resource($conn)); can't be emulated that way)

johannes

--
Johannes Schlüter
MySQL Engineering Connectors and Client Connectivity

Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht München: HRB161028 Geschäftsführer: Jürgen Kunz


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 June 19, 2010 12:41:10

Sebastian B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Remove ext/mysql from trunk? (was: Re: [PHP-DEV] Remove sqlite2 from trunk)


Am 19.06.2010 13:00, schrieb Johannes Schlüter:
> .... while such a wrapper has about the same amount of code as the
> classic mysql extension (... which is in most parts a simple wrapper
> over library functions...) Or in other words: Such a wrapper doesn't
> have real benefits.

I see.

--
Sebastian Bergmann Co-Founder and Principal Consultanthttp://sebastian-bergmann.de/http://thePHP.cc/--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] Remove ext/mysql from trunk? (was: Re: [PHP-DEV] Remove sqlite2 from trunk) [RSS Feed]

Board footer

Moderator control

Enjoy the 19th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support