Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Lester Caine
Rasmus Lerdorf wrote: On 09/02/2011 01:17 PM, Lester Caine wrote: Rasmus Lerdorf wrote: I was actually going to suggest doing this in 5.4 and trunk but didn't get around to writing the email yet. It would still be nice to be able to simply switch off MySQL for those of us who do

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Lester Caine
Stas Malyshev wrote: libmysql *is* the common case build and the one most people would be running in production, at least as far as I see around. In the words of wikipedia - provide proof. If this is the case then why is mysqlnd loaded by default? Even if we do not have MySQL installed. --

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Rasmus Lerdorf
On 09/02/2011 11:43 PM, Lester Caine wrote: All builds seem to have mysqlnd included by default? So that has to be tested on every installation even if it's not going to be used? And I've hit problems with distributions needing MySQL because of a dependency on mysqlnd. I know we have had

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Rasmus Lerdorf
On 09/02/2011 11:48 PM, Lester Caine wrote: Stas Malyshev wrote: libmysql *is* the common case build and the one most people would be running in production, at least as far as I see around. In the words of wikipedia - provide proof. If this is the case then why is mysqlnd loaded by default?

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Lester Caine
Rasmus Lerdorf wrote: On 09/02/2011 11:43 PM, Lester Caine wrote: All builds seem to have mysqlnd included by default? So that has to be tested on every installation even if it's not going to be used? And I've hit problems with distributions needing MySQL because of a dependency on mysqlnd. I

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Lester Caine
Rasmus Lerdorf wrote: On 09/02/2011 11:48 PM, Lester Caine wrote: Stas Malyshev wrote: libmysql*is* the common case build and the one most people would be running in production, at least as far as I see around. In the words of wikipedia - provide proof. If this is the case then

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Rasmus Lerdorf
On 09/03/2011 12:15 AM, Lester Caine wrote: My SUSE installs all have mysqlnd included in the core, As do other Linux distributions. I think for much the same reason that the windows builds do as well? The PHP development team have decided that -without-mysqlnd is required to remove it rather

[PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Lester Caine
New thread ... My SUSE installs all have mysqlnd included in the core, As do other Linux distributions. I think for much the same reason that the windows builds do as well? The PHP development team have decided that -without-mysqlnd is required to remove it rather than -with-mysqlnd is with

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Tomas Kuliavas
2011.09.03 12:06 Lester Caine rašė: New thread ... My SUSE installs all have mysqlnd included in the core, As do other Linux distributions. I think for much the same reason that the windows builds do as well? The PHP development team have decided that -without-mysqlnd is required to remove

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Ferenc Kovacs
On Sat, Sep 3, 2011 at 11:06 AM, Lester Caine les...@lsces.co.uk wrote: New thread ... My SUSE installs all have mysqlnd included in the core, As do other Linux distributions. I think for much the same reason that the windows builds do as well? The PHP development team have decided that

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Ulf Wendel
Am 03.09.2011 03:51, schrieb Rasmus Lerdorf: On 09/02/2011 06:08 PM, Stas Malyshev wrote: Hi! On 9/2/11 6:02 PM, Rasmus Lerdorf wrote: Well, we are not trying to get to 0 failed tests in all permutations of all extensions on all platforms. We are trying to get to 0 failed tests on a

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Ferenc Kovacs
On Sat, Sep 3, 2011 at 12:36 PM, Pierre Joye pierre@gmail.com wrote: It is part of the default exts just like on unix with the difference windows has no libmysql support anymore since 5.3 so for windows, the mysqlnd is a builtin extension, (but one cannot use it without the mysql or mysqli

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Lester Caine
Ferenc Kovacs wrote: On Sat, Sep 3, 2011 at 12:36 PM, Pierre Joyepierre@gmail.com wrote: It is part of the default exts just like on unix with the difference windows has no libmysql support anymore since 5.3 so for windows, the mysqlnd is a builtin extension, (but one cannot use it

Re: [PHP-DEV] [VOTE] Weak References

2011-09-03 Thread Etienne Kneuss
Hi, On Tue, Aug 9, 2011 at 14:22, Arvids Godjuks arvids.godj...@gmail.comwrote: I have mixed feelings about this proposal - from one point it's quite neat - ability to mark circular references for the memory manager so it can free them sounds very delicious, especially for some cases. I had

Re: [PHP-DEV] [VOTE] Weak References

2011-09-03 Thread Etienne Kneuss
Hi, On Fri, Sep 2, 2011 at 14:25, Nicolas Grekas nicolas.grekas+...@gmail.comwrote: How about adding weak maps to this RFC? https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/WeakMap This would be fantastic! Nicolas Indeed, I planned to implement that as well, I

Re: [PHP-DEV] [VOTE] Weak References

2011-09-03 Thread Ferenc Kovacs
Weak references have been implemented in a PECL extension since weeks now: http://php.net/weakref and/or http://pecl.php.net/weakref It feels like you're beating up a dead horse here. A discussion for bundling it might occur in the future, but given the feedbacks PECL might very well be the

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Lester Caine
Tomas Kuliavas wrote: 2011.09.03 12:06 Lester Caine rašė: New thread ... My SUSE installs all have mysqlnd included in the core, As do other Linux distributions. I think for much the same reason that the windows builds do as well? The PHP development team have decided that -without-mysqlnd is

Re: [PHP-DEV] [VOTE] Weak References

2011-09-03 Thread Etienne Kneuss
On Sat, Sep 3, 2011 at 13:57, Ferenc Kovacs tyr...@gmail.com wrote: Weak references have been implemented in a PECL extension since weeks now: http://php.net/weakref and/or http://pecl.php.net/weakref It feels like you're beating up a dead horse here. A discussion for bundling it

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Reindl Harald
Am 03.09.2011 14:00, schrieb Lester Caine: Current state of play, the SUSE install includes mysqlnd with the core package, and mysql and mysqli are available as extra packages. Again - nowdays the 'required' dependency on MySQL does seem to have been dropped, but other PHP extensions

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Lester Caine
Reindl Harald wrote: Am 03.09.2011 14:00, schrieb Lester Caine: Current state of play, the SUSE install includes mysqlnd with the core package, and mysql and mysqli are available as extra packages. Again - nowdays the 'required' dependency on MySQL does seem to have been dropped, but

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Johannes Schlüter
Lester, On Sat, 2011-09-03 at 10:06 +0100, Lester Caine wrote: OK done that ... http://lsces.co.uk/PHP/testphpinfo.php is the current PHP install managed via SUSE. Additional .ini files shows what I've added from the package manager (and my own extension builds), yet mysqlnd is listed

Re: [PHP-DEV] [VOTE] Weak References

2011-09-03 Thread Lars Schultz
Am 03.09.2011 13:56, schrieb Etienne Kneuss: Indeed, I planned to implement that as well, I haven't had the time to do it yet though. It should happen in the following weeks. Not to keep you from doing this...but couldn't that easily be solved by using a simple associative php array like

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Lester Caine
Johannes Schlüter wrote: On Sat, 2011-09-03 at 10:06 +0100, Lester Caine wrote: OK done that ... http://lsces.co.uk/PHP/testphpinfo.php is the current PHP install managed via SUSE. Additional .ini files shows what I've added from the package manager (and my own extension builds),

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Reindl Harald
Am 03.09.2011 17:19, schrieb Lester Caine: Adding a separate .ini for each package makes a lot more sense this is usally done since years and all of the extension specific settings can be kept in the one place. You can then load a database driver along with all it's own configuration

Re: [PHP-DEV] [VOTE] Weak References

2011-09-03 Thread Etienne Kneuss
Hi, On Sat, Sep 3, 2011 at 17:14, Lars Schultz lars.schu...@toolpark.comwrote: Am 03.09.2011 13:56, schrieb Etienne Kneuss: Indeed, I planned to implement that as well, I haven't had the time to do it yet though. It should happen in the following weeks. Not to keep you from doing

Re: [PHP-DEV] [VOTE] Weak References

2011-09-03 Thread Nicolas Grekas
$pseudoWeakMap = array(); $pseudoWeakMap[spl_object_**hash($obj)] = new WeakReference($obj); or did I misunderstand the concept? I hope I'll have a chance to use WeakReferences soon in my project;) I also believe that this is the logic, but from the doc, when an object is destroyed, its

[PHP-DEV] [RFC] New extension proposal: meta

2011-09-03 Thread Flavius Aspra
Hi I'm Flavius Aspra and over the past weeks [1] I've worked on a small extension, which I think it has a lot of potential. Thanks to everyone for being patient with me on #php.pecl during this time - I've learned a lot! Meta will enable userland scripts to get the AST of a PHP source code, to

Re: [PHP-DEV] [RFC] New extension proposal: meta

2011-09-03 Thread Arpad Ray
Hi, Haven't had much of a look yet but I really like the concept :) A couple of minor things to note: - Now would be a good time to make it follow the PHP coding standards, before it gets much larger or other devs get involved. - Variable declarations should always begin a block, some platforms

Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages?

2011-09-03 Thread Lester Caine
Reindl Harald wrote: Am 03.09.2011 17:19, schrieb Lester Caine: Adding a separate .ini for each package makes a lot more sense this is usally done since years and all of the extension specific settings can be kept in the one place. You can then load a database driver along with all

Re: [PHP-DEV] [RFC] New extension proposal: meta

2011-09-03 Thread Kalle Sommer Nielsen
Hi Arpad 2011/9/3 Arpad Ray array...@gmail.com: - Variable declarations should always begin a block, some platforms will bork otherwise. Actually this is required for the C standard, the early ones that we use in PHP, whereas C++ allows them anywhere in a block, like PHP does :) -- regards,

[PHP-DEV] Turn on error on mixed declarations (Was: New extension proposal: meta)

2011-09-03 Thread Gustavo Lopes
On Sun, 04 Sep 2011 04:05:32 +0100, Kalle Sommer Nielsen ka...@php.net wrote: 2011/9/3 Arpad Ray array...@gmail.com: - Variable declarations should always begin a block, some platforms will bork otherwise. Actually this is required for the C standard, the early ones that we use in PHP,

[PHP-DEV] Re: mysqli tests breaking

2011-09-03 Thread Stas Malyshev
Hi! I've tried with latest mysql library and as I suspected, most of the issues still stay. The ones I'm most worried about are: 1. mysqli_stmt_num_rows() is expected to return number of rows after all rows were fetched while returning 0 before that. libmysql definitely doesn't do that, in

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-03 Thread Stas Malyshev
Hi! On 9/2/11 6:51 PM, Rasmus Lerdorf wrote: Forget the failed tests. A new PHP release is about improving the ecosystem. If the folks that maintain libmysql and mysqlnd suggest that mysqlnd is more robust and it is the path forward, why would we resist this? Do we not trust Oracle/MySQL enough

Re: [PHP-DEV] ext/pcre/tests/006.phpt

2011-09-03 Thread Stas Malyshev
Hi! On 9/2/11 6:10 PM, Ferenc Kovacs wrote: http://svn.php.net/viewvc?view=revisionrevision=311323 it seems that the behavior was depending on the backtrack limit, but I'm not sure what to do with the test. should I simply delete? or can we change the patter in such way that it would return

[PHP-DEV] mbstring failures

2011-09-03 Thread Stas Malyshev
Hi! In my tests, I have some test failures in mbstring extensions, namely: Bug #28220 (mb_strwidth() returns wrong width values for some Hangul characters) [/Users/smalyshev/php-src/branches/PHP_5_4/ext/mbstring/tests/bug28220.phpt] Bug #49536 (mb_detect_encoding() returns incorrect results