[PHP-DEV] First RC of PHP5.5 available

2013-05-09 Thread Julien Pauli
Hi Internals, Our RC1 of PHP 5.5.0 has been released for testing. It fixes some bugs and possible memleaks against last beta. You'll find details in the NEWS file. The packages can be found at: http://downloads.php.net/dsp and windows packages at http://windows.php.net/qa Please test the

[PHP-DEV] PHP 5.5 and APC user cache upgrade path

2013-05-09 Thread Pierre Schmitz
Hi, I am testing PHP 5.5 atm and how we can package it for Arch Linux and provide an upgrade path for users. The RC1 looks pretty solid so far. As the new opcache does not provide a user cache to store custom variables, I would be glad if you could clarify what the best migration from 5.4 would b

Re: [PHP-DEV] PHP 5.5 and APC user cache upgrade path

2013-05-09 Thread Dan Cryer
I'm also very keen to understand the expected upgrade path, but from the perspective of a PHP developer supporting some large bespoke applications that rely heavily both on opcode caching and the user-caching functionality of APC. Is APCu the agreed best path for systems that currently use APC's u

[PHP-DEV] list() inside a foreach()

2013-05-09 Thread Stefan Neufeind
Hi, trying out the following source I was astonished to see that using list() does not work directly in a foreach() but works fine if used through a temporary variable. Would allowing using list() inside the foreach()-statement be desired behaviour? Or is it just me? :-) $a = array( a

Re: [PHP-DEV] list() inside a foreach()

2013-05-09 Thread Sherif Ramadan
On Thu, May 9, 2013 at 12:39 PM, Stefan Neufeind wrote: > Hi, > > trying out the following source I was astonished to see that using > list() does not work directly in a foreach() but works fine if used > through a temporary variable. > > Hi, This feature was already voted in and accepted. https

Re: [PHP-DEV] list() inside a foreach()

2013-05-09 Thread Nikita Popov
On Thu, May 9, 2013 at 6:39 PM, Stefan Neufeind wrote: > Hi, > > trying out the following source I was astonished to see that using > list() does not work directly in a foreach() but works fine if used > through a temporary variable. > > Would allowing using list() inside the foreach()-statement

Re: [PHP-DEV] list() inside a foreach()

2013-05-09 Thread Stefan Neufeind
On 05/09/2013 06:42 PM, Sherif Ramadan wrote: > On Thu, May 9, 2013 at 12:39 PM, Stefan Neufeind wrote: > >> Hi, >> >> trying out the following source I was astonished to see that using >> list() does not work directly in a foreach() but works fine if used >> through a temporary variable. >> >> >

[PHP-DEV] 5.4.15 and PHP 5.3.25 released!

2013-05-09 Thread Stas Malyshev
Hello! The PHP development team announces the immediate availability of PHP 5.4.15 and PHP 5.3.25. These releases fix about 10 bugs. All users of PHP are encouraged to upgrade to PHP 5.4. PHP 5.3.25 is recommended for those wishing to remain on the 5.3 series. The full list of changes are recorde

[PHP-DEV] exceptions during __toString()

2013-05-09 Thread Rasmus Schultz
I just ran into this issue again: http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring Instead of throwing some nonsense "you're not allowed to throw from here" error-message, how about actually unwinding the stack and passing the exception to the global

Re: [PHP-DEV] exceptions during __toString()

2013-05-09 Thread Etienne Kneuss
On Fri, May 10, 2013 at 12:00 AM, Rasmus Schultz wrote: > I just ran into this issue again: > > > http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring > > Instead of throwing some nonsense "you're not allowed to throw from here" > error-message, how about

Re: [PHP-DEV] exceptions during __toString()

2013-05-09 Thread Rasmus Schultz
I've heard the technical explanation before, and while it probably doesn't make sense to go through all that effort to fix this... well... take this example: class Foo { public function __toString() { try { return $this->bar(); } catch (Exception $e) {

Re: [PHP-DEV] PHP 5.5 and APC user cache upgrade path

2013-05-09 Thread Laruence
Hey: besides APCu, you can also have a try with : https://github.com/laruence/yac :) thanks On Thu, May 9, 2013 at 8:02 PM, Pierre Schmitz wrote: > Hi, > > I am testing PHP 5.5 atm and how we can package it for Arch Linux and > provide an upgrade path for users. The RC1 looks pretty