[PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Karoly Negyesi
Hi, So, if we are talking about PHP 6, then the opening ?php tag should be accompanied by the version it was written for, it was tested with and then the engine could switch to a compatibility mode for that version. Seems to me that this would solve the problem where a host can't upgrade to a

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Pierre Joye
hi, On Sun, Feb 3, 2013 at 12:36 PM, Karoly Negyesi kar...@negyesi.net wrote: Hi, So, if we are talking about PHP 6, then the opening ?php tag should be accompanied by the version it was written for, it was tested with and then the engine could switch to a compatibility mode for that

[PHP-DEV] VCS Account Request: jenkins

2013-02-03 Thread jenkins
this account will be used to keep the ci.qa.php.net jenkins installation\#039;s config file in sync with the web/jenkins git repo. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] VCS Account Request: jenkins

2013-02-03 Thread Ferenc Kovacs
On Sun, Feb 3, 2013 at 1:30 PM, jenkins jenk...@ci.qa.php.net wrote: this account will be used to keep the ci.qa.php.net jenkins installation\#039;s config file in sync with the web/jenkins git repo. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] VCS Account Request: jenkins

2013-02-03 Thread Pierre Joye
hi, On Sun, Feb 3, 2013 at 1:33 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Sun, Feb 3, 2013 at 1:30 PM, jenkins jenk...@ci.qa.php.net wrote: this account will be used to keep the ci.qa.php.net jenkins installation\#039;s config file in sync with the web/jenkins git repo. -- PHP

Re: [PHP-DEV] VCS Account Request: jenkins

2013-02-03 Thread Ferenc Kovacs
On Sun, Feb 3, 2013 at 2:10 PM, Pierre Joye pierre@gmail.com wrote: hi, On Sun, Feb 3, 2013 at 1:33 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Sun, Feb 3, 2013 at 1:30 PM, jenkins jenk...@ci.qa.php.net wrote: this account will be used to keep the ci.qa.php.net jenkins

[PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Hans-Juergen Petrich
Hi all In this example (using php-5.4.11 on Linux) the memory will grow non-stop: for ( $fp = fopen('/dev/urandom', 'rb'); true;) { eval ('$ano_fnc = function() {$x = '.bin2hex(fread($fp, mt_rand(1, 1))).';};'); echo Mem usage: .memory_get_usage().\n; } But in this example not:

Re: [PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Ángel González
On 03/02/13 16:27, Hans-Juergen Petrich wrote: The only different in the second example is the fixed body length of the eval()-created anoymous function. I wondering why the memory in the second code-example will be freed at some point while in the first example not. I don't think it's a

Re: [PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Sebastian Bergmann
Am 03.02.2013 16:27, schrieb Hans-Juergen Petrich: Is there one who can explain this? Can you explain why you are using eval() instead of a real anonymous function? Thanks! -- Sebastian BergmannCo-Founder and Principal Consultant http://sebastian-bergmann.de/

Re: [PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Sebastian Bergmann
Am 03.02.2013 18:07, schrieb Sebastian Bergmann: Can you explain why you are using eval() instead of a real anonymous function? Thanks! Please ignore my email; I mixed up create_function() and eval(). Then again, your code still does not make sense to me ... -- Sebastian Bergmann

[PHP-DEV] FILTER_VALIDATE_INT and +0/-0

2013-02-03 Thread Martin Jansen
Back in December I submitted a pull request to make FILTER_VALIDATE_INT accept +0/-0. That request was merged into php-src: https://github.com/php/php-src/pull/248 The other day I then stumbled upon a note on http://www.php.net/manual/en/filter.filters.validate.php saying Numbers +0 and -0 are

Re: [PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Sebastian Krebs
2013/2/3 Sebastian Bergmann sebast...@php.net Am 03.02.2013 18:07, schrieb Sebastian Bergmann: Can you explain why you are using eval() instead of a real anonymous function? Thanks! Please ignore my email; I mixed up create_function() and eval(). Then again, your code still does not

Re: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0

2013-02-03 Thread Sherif Ramadan
On Sun, Feb 3, 2013 at 1:15 PM, Martin Jansen mar...@divbyzero.net wrote: Back in December I submitted a pull request to make FILTER_VALIDATE_INT accept +0/-0. That request was merged into php-src: https://github.com/php/php-src/pull/248 The other day I then stumbled upon a note on

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Karoly Negyesi
Well, either I misunderstood the policy or it's broken. Here are some (note: please do not argue whether these are more correct than before, they very well might be but they broke backwards compatibility): For example, in 5.4 array_diff_assoc began to throw a notice when casting to string. Again

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Rasmus Lerdorf
On 02/03/2013 11:44 AM, Karoly Negyesi wrote: Well, either I misunderstood the policy or it's broken. Here are some (note: please do not argue whether these are more correct than before, they very well might be but they broke backwards compatibility): For example, in 5.4 array_diff_assoc

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Ferenc Kovacs
On Sun, Feb 3, 2013 at 8:44 PM, Karoly Negyesi kar...@negyesi.net wrote: Well, either I misunderstood the policy or it's broken. Here are some (note: please do not argue whether these are more correct than before, they very well might be but they broke backwards compatibility): For example,

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Sherif Ramadan
On Sun, Feb 3, 2013 at 2:50 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 02/03/2013 11:44 AM, Karoly Negyesi wrote: Well, either I misunderstood the policy or it's broken. Here are some (note: please do not argue whether these are more correct than before, they very well might be but

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Karoly Negyesi
We do not consider a change [...] a BC break Let me help: backwards compatibility means a host can upgrade a package without inducing a lot of support tickets. Best, Karoly Negyesi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Rasmus Lerdorf
On 02/03/2013 01:48 PM, Karoly Negyesi wrote: We do not consider a change [...] a BC break Let me help: backwards compatibility means a host can upgrade a package without inducing a lot of support tickets. Well, that is obviously not realistic. Every change we make has some level of BC

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Karoly Negyesi
Well, fixing a segfault, adding a new function or method as it oft happened in PHP 5.3 is only breaking forwards compatibility not backwards -- if you have code that ran on PHP 5.3.4 it'll run on 5.3.5. The reverse is not true which causes some headaches to Drupal developers but it's not relevant

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Rasmus Lerdorf
On 02/03/2013 02:03 PM, Karoly Negyesi wrote: Well, fixing a segfault, adding a new function or method as it oft happened in PHP 5.3 is only breaking forwards compatibility not backwards -- if you have code that ran on PHP 5.3.4 it'll run on 5.3.5. The reverse is not true which causes some

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Karoly Negyesi
If you mean ?php3 then well, I was not here but maybe we could learn from the mistakes and get a better implementation? I have some ideas, but first I'd be glad to learn why it was a mess. On Sun, Feb 3, 2013 at 2:06 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 02/03/2013 02:03 PM, Karoly

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Sean Coates
So, if we are talking about PHP 6, then the opening ?php tag should be accompanied by the version it was written for, it was tested with and then the engine could switch to a compatibility mode for that version. Seems to me that this would solve the problem where a host can't upgrade to a

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Rasmus Lerdorf
On 02/03/2013 02:11 PM, Karoly Negyesi wrote: If you mean ?php3 then well, I was not here but maybe we could learn from the mistakes and get a better implementation? I have some ideas, but first I'd be glad to learn why it was a mess. The whole concept of maintaining multiple personalities in

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Nikita Popov
On Sun, Feb 3, 2013 at 12:36 PM, Karoly Negyesi kar...@negyesi.net wrote: Hi, So, if we are talking about PHP 6, then the opening ?php tag should be accompanied by the version it was written for, it was tested with and then the engine could switch to a compatibility mode for that version.

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Karoly Negyesi
Hm, there is a slight miscommunication which is my fault. I do not suggest a PHP engine being compatible with 5 and 6, gosh, no. I suggest a PHP engine compatible with 5.3 and 5.4. Is that a maintenance mess too? The difference should be a lot, lot smaller. And yes, interaction is a problem and

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Rasmus Lerdorf
On 02/03/2013 02:27 PM, Karoly Negyesi wrote: Hm, there is a slight miscommunication which is my fault. I do not suggest a PHP engine being compatible with 5 and 6, gosh, no. I suggest a PHP engine compatible with 5.3 and 5.4. Is that a maintenance mess too? The difference should be a lot,

Re: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0

2013-02-03 Thread Derick Rethans
On Sun, 3 Feb 2013, Martin Jansen wrote: Back in December I submitted a pull request to make FILTER_VALIDATE_INT accept +0/-0. That request was merged into php-src: https://github.com/php/php-src/pull/248 The other day I then stumbled upon a note on

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Karoly Negyesi
array_diff_asccoc() comparing array(1,2,3) to Array and saying those were equivalent without any sort of notice. That's not what happened, some contib was comparing array(1,2,3) to array(1,2,array(3)) and even looking at the documentation it is not clear whether the cast should or should not

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Rasmus Lerdorf
On 02/03/2013 02:39 PM, Karoly Negyesi wrote: array_diff_asccoc() comparing array(1,2,3) to Array and saying those were equivalent without any sort of notice. That's not what happened, some contib was comparing array(1,2,3) to array(1,2,array(3)) and even looking at the documentation it is

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Thomas Bley
On Sun, Feb 3, 2013 at 11:22 PM, Nikita Popov nikita@gmail.com wrote: On Sun, Feb 3, 2013 at 12:36 PM, Karoly Negyesi kar...@negyesi.net wrote: Hi, So, if we are talking about PHP 6, then the opening ?php tag should be accompanied by the version it was written for, it was tested with and

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Rasmus Lerdorf
On 02/03/2013 02:49 PM, Thomas Bley wrote: On Sun, Feb 3, 2013 at 11:22 PM, Nikita Popov nikita@gmail.com wrote: On Sun, Feb 3, 2013 at 12:36 PM, Karoly Negyesi kar...@negyesi.net wrote: Hi, So, if we are talking about PHP 6, then the opening ?php tag should be accompanied by the

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Florian Anderiasch
On 03.02.2013 23:49, Thomas Bley wrote: Using Debian/Ubuntu, I have python2.6, python2.7 and python3 packages, but only one version of php5-fpm. Maybe it would be better to have php5.3-fpm and php5.4-fpm, using /etc/php5.3 and /etc/php5.4 ? Esp. for Travis-CI it would be much better to have

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Kris Craig
On Sun, Feb 3, 2013 at 1:48 PM, Karoly Negyesi kar...@negyesi.net wrote: We do not consider a change [...] a BC break Let me help: backwards compatibility means a host can upgrade a package without inducing a lot of support tickets. Best, Karoly Negyesi -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Thomas Bley
On Sun, Feb 3, 2013 at 11:56 PM, Florian Anderiasch m...@anderiasch.de wrote: On 03.02.2013 23:49, Thomas Bley wrote: Using Debian/Ubuntu, I have python2.6, python2.7 and python3 packages, but only one version of php5-fpm. Maybe it would be better to have php5.3-fpm and php5.4-fpm, using

Re: [PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Hans-Jürgen Petrich
Hi Terry and all thank you very much for your response. The only thing that confused me about what you say that the second *doesn't* grow Yes, about that i was [and am still :-)] also confused... why the 2nd one won't grow *non-stop* so I checked and it does -- just the same as the first.

[PHP-DEV] Questioning the future of PHP

2013-02-03 Thread Matt Wilson
Hello all. I'd like to start by saying that I am by no means an expert on the subject at hand, and my knowledge is limited to pretty much basic C/C++. I have done little more than patch and write ad hoc extensions for PHP in the past. I'm not looking to criticize so much, as I'm just interested

Re: [PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Hans-Juergen Petrich
Hello Then again, your code still does not make sense to me ... Fully understand :-) Not want wasting your time with my specific situation... but there are situation where it make sense :-) For example... in my situation, i have time intensive (mathematically) operations to do in pure

Re: [PHP-DEV] Questioning the future of PHP

2013-02-03 Thread Sanford Whiteman
This is something of a wet dream of mine TMI, my friend. TMI. Anyway... I think your Subject is unnecessarily trolly even if the substance of your post isn't. So maybe you could re-post with a WAS: Questioning... to avoid p'ing off the dev team? If I'm understanding your statement of The

Re: [PHP-DEV] Questioning the future of PHP

2013-02-03 Thread Larry Garfield
On 02/03/2013 08:51 PM, Matt Wilson wrote: Hello all. I'd like to start by saying that I am by no means an expert on the subject at hand, and my knowledge is limited to pretty much basic C/C++. I have done little more than patch and write ad hoc extensions for PHP in the past. I'm not looking

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Ole Markus With
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/02/13 23:56, Florian Anderiasch wrote: On 03.02.2013 23:49, Thomas Bley wrote: Using Debian/Ubuntu, I have python2.6, python2.7 and python3 packages, but only one version of php5-fpm. Maybe it would be better to have php5.3-fpm and

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Jan Ehrhardt
Thomas Bley in php.internals (Mon, 4 Feb 2013 02:06:02 +0100): If I see it correctly, none of Debian, Ubuntu, openSUSE, CentOS, Fedora currently offer more than one version of PHP. Directadmin does, I am using it on CentOS. http://forum.directadmin.com/showthread.php?t=44743 Jan -- PHP

Re: [PHP-DEV] Questioning the future of PHP

2013-02-03 Thread David Muir
We still don't have a way to auto load non class entities. Other than that, PSR-0 does solve the majority of autoload use cases. Cheers, David Sent from my iPhone On 04/02/2013, at 5:18 PM, Larry Garfield la...@garfieldtech.com wrote: On 02/03/2013 08:51 PM, Matt Wilson wrote: Hello all.

Re: [PHP-DEV] Update PHP stats?

2013-02-03 Thread Peter Cowburn
Hi, On 4 February 2013 07:41, Martin Keckeis martin.kecke...@gmail.com wrote: Hello, netcraft got new numbers. Maybe the outdated usage page could get updated? http://www.php.net/usage.php http://news.netcraft.com/archives/2013/01/31/php-just-grows-grows.html I have been in touch with