Re: [PHP-DEV] Constant and expression ?

2010-05-20 Thread Richard Quadling
On 19 May 2010 22:18, Alban LEROUX wrote: > On 2010-05-19 14:04:13 +0200, Ferenc Kovacs said: > >> On Wed, May 19, 2010 at 1:49 PM, Christian Schneider >> wrote: >> >>> fqqdk wrote: How about extending the usage of the 'final' keyword to support a >>> >>> java-like syntax?

[PHP-DEV] Æ

2010-05-20 Thread Frederic Hardy
Hello ! I have a problem with php 5.3.2 under FreeBSD 7/8 with configure option --enable-zend-multibyte and phar support. Then i use this option, phar does not work correctly. No seg fault, no crash, just... nothing or cabalistic letter in output of my script. To solve the problem, recompilati

Re: [PHP-DEV] --enable-zend-multibyte and phar support

2010-05-20 Thread Frederic Hardy
On 05/20/2010 11:28, Frederic Hardy wrote: I have a problem with php 5.3.2 under FreeBSD 7/8 with configure option --enable-zend-multibyte and phar support. Then i use this option, phar does not work correctly. No seg fault, no crash, just... nothing or cabalistic letter in output of my script.

Re: [PHP-DEV] Run Time Cache RFC

2010-05-20 Thread Christopher Jones
Dmitry Stogov wrote: > Hi, > > I'm proposing another optimisation technique implementation for PHP > which makes up to 20% speed up on synthetic tests and up to 8% speed up > on real-life applications. > > The technique is similar to "inline caches" which is very popular in JIT > compilers for o

[PHP-DEV] json_decode() and integers larger than LONG_MAX (2^31 - 1)

2010-05-20 Thread Sara Golemon
I know this issue has been seen before, but I hope to do something about it. $json = '1234567890123456789'; $x = json_decode($json); /* $x is now a float *aproximately* * equal to the original value */ For database indexes, being off by one can be disasterous for application flow, so I'd like

Re: [PHP-DEV] json_decode() and integers larger than LONG_MAX (2^31 - 1)

2010-05-20 Thread Pierre Joye
hi Sara, The idea sounds sane, until we have big integer support :) Only one thing, I would suggest to use JSON_BIGINT_AS_STRING instead, more clear about its effect. Cheers, On Thu, May 20, 2010 at 9:50 PM, Sara Golemon wrote: > I know this issue has been seen before, but I hope to do somethi

Re: [PHP-DEV] json_decode() and integers larger than LONG_MAX (2^31 - 1)

2010-05-20 Thread Ilia Alshanetsky
Sara, Could you not treat a very large integer as a double? We do that in a few areas of the code already. On Thu, May 20, 2010 at 3:50 PM, Sara Golemon wrote: > I know this issue has been seen before, but I hope to do something about > it. > > $json = '1234567890123456789'; > $x = json_decode(

Re: [PHP-DEV] json_decode() and integers larger than LONG_MAX (2^31 - 1)

2010-05-20 Thread Sara Golemon
Ilia Alshanetsky wrote: Could you not treat a very large integer as a double? We do that in a few areas of the code already. Treating it as a double is exactly what json_decode() *currently* does, and it's the problem I'm trying to work around by leaving it in string form. When a large intege

Re: [PHP-DEV] Run Time Cache RFC

2010-05-20 Thread Dmitry Stogov
Hi Jones, Christopher Jones wrote: Dmitry Stogov wrote: > Hi, > > I'm proposing another optimisation technique implementation for PHP > which makes up to 20% speed up on synthetic tests and up to 8% speed up > on real-life applications. > > The technique is similar to "inline caches" wh