[PHP-DEV] PHP 5.5.17RC1 is ready for testing

2014-09-04 Thread Julien Pauli
Hello PHP 5.5.17 RC1 is available for testing. You can download it from http://downloads.php.net/jpauli/ The Windows binaries are available at http://windows.php.net/qa/ This release contains a number of bugfixes. For the list of bugfixes that you can target in your testing, please refer to th

[PHP-DEV] STR_REALLOC definition in 5.6+

2014-09-04 Thread Remi Collet
For now: #define STR_REALLOC(ptr, size) \ ptr = (char *) erealloc(ptr, size); Dealing with https://github.com/phalcon/cphalcon/pull/2772 I switch from realloc to str_realloc. But this is not portable (str_realloc is 5.6+ only) STR_REALLOC should be better, as portable,

[PHP-DEV] Fast zend_parse_parameters API

2014-09-04 Thread Bob Weinand
After a long time… back to our fast_zpp RFC. Initially Dmitry proposed to have two different APIs, one for the fast version, one for current version: #if FAST_ZPP /* new API */ #else /* old style zend_parse_parameters API */ #endif I don't really like the idea of having two different API

Re: [PHP-DEV] Fast zend_parse_parameters API

2014-09-04 Thread Andrea Faulds
On 4 Sep 2014, at 13:23, Bob Weinand wrote: > After a long time… back to our fast_zpp RFC. > > Initially Dmitry proposed to have two different APIs, one for the fast > version, one for current version: > #if FAST_ZPP >/* new API */ > #else >/* old style zend_parse_parameters API */ > #

Re: [PHP-DEV] Fast zend_parse_parameters API

2014-09-04 Thread Derick Rethans
On Thu, 4 Sep 2014, Bob Weinand wrote: > After a long time… back to our fast_zpp RFC. > > Initially Dmitry proposed to have two different APIs, one for the fast > version, one for current version: > #if FAST_ZPP > /* new API */ > #else > /* old style zend_parse_parameters API */ > #endif

[PHP-DEV] Re: Fast zend_parse_parameters API

2014-09-04 Thread Dmitry Stogov
I like the idea of having a single syntax for all cases, but I don't like the syntax you propose. In my opinion, it's syntactically inconsistent, less readable and more error prone, than the old one (sscanf based) and the FAST_ZPP one that is already in php-master. I would also prefer to have an a

Re: [PHP-DEV] Re: Fast zend_parse_parameters API

2014-09-04 Thread Pierre Joye
On Thu, Sep 4, 2014 at 3:56 PM, Dmitry Stogov wrote: > I like the idea of having a single syntax for all cases, but I don't like > the syntax you propose. > In my opinion, it's syntactically inconsistent, less readable and more > error prone, than the old one (sscanf based) and the FAST_ZPP one th

Re: [PHP-DEV] Fast zend_parse_parameters API

2014-09-04 Thread Dmitry Stogov
On Thu, Sep 4, 2014 at 5:32 PM, Derick Rethans wrote: > On Thu, 4 Sep 2014, Bob Weinand wrote: > > > After a long time… back to our fast_zpp RFC. > > > > Initially Dmitry proposed to have two different APIs, one for the fast > version, one for current version: > > #if FAST_ZPP > > /* new API

Re: [PHP-DEV] STR_REALLOC definition in 5.6+

2014-09-04 Thread Nikita Popov
On Thu, Sep 4, 2014 at 2:00 PM, Remi Collet wrote: > For now: > > #define STR_REALLOC(ptr, size) \ > ptr = (char *) erealloc(ptr, size); > > > Dealing with https://github.com/phalcon/cphalcon/pull/2772 > > I switch from realloc to str_realloc. > But this is not portable (s

Re: [PHP-DEV] Re: Fast zend_parse_parameters API

2014-09-04 Thread Stas Malyshev
Hi! > As I understand correctly the only reason we have this discussion is > the performance impact of zpp with some functions, mainly > ZEND_FUNCTIONs. What prevents us to make them operators? That may > break things like call_user_func("strlen", $arg), array_map and the There's also an issue t

[PHP-DEV] PHP 5.4.33 RC1 Released for testing

2014-09-04 Thread Stas Malyshev
Hi! The first RC of the PHP 5.4.33 was just released and can be downloaded from: http://downloads.php.net/stas/ The Windows binaries are available at http://windows.php.net/qa/ This release contains a number of bugfixes. For the list of bugfixes that you can target in your testing, pleas

[PHP-DEV] joining apply

2014-09-04 Thread 孙晔
-- Best Wishes, Alexsunyx - PHP developer

Re: [PHP-DEV] Re: Fast zend_parse_parameters API

2014-09-04 Thread Dmitry Stogov
It's already done for strlen() - ZEND_STRLEN opcode (and few other functions). But it make no sense to convert all useful functions into opcodes. We need an ability of fast parameter parsing anyway. Thanks. Dmitry. On Fri, Sep 5, 2014 at 5:55 AM, Stas Malyshev wrote: > Hi! > > > As I understa