Re: [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback

2013-04-29 Thread Laruence
On Tue, Apr 30, 2013 at 1:43 AM, Nikita Popov wrote: > On Mon, Apr 29, 2013 at 6:46 PM, Laruence wrote: > >> Hey: >>there comes a FR: https://bugs.php.net/bug.php?id=64730 >> >>the main idea is, in 5.5 we remove support of 'e' modifier. >> >>then comes a problem, the old codes(a real

Re: [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback

2013-04-29 Thread Nikita Popov
On Mon, Apr 29, 2013 at 6:46 PM, Laruence wrote: > Hey: >there comes a FR: https://bugs.php.net/bug.php?id=64730 > >the main idea is, in 5.5 we remove support of 'e' modifier. > >then comes a problem, the old codes(a real use case see > https://github.com/php/php-src/blob/PHP-5.4/Zend

Re: [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback

2013-04-29 Thread Xinchen Hui
发自我的 iPad 在 2013-4-30,1:09,Remi Collet 写道: > Le 29/04/2013 18:46, Laruence a écrit : > >> so I propose to add a second argument to callback(aim to php-5.5.1), > > Seems a useful fix to this problem (also encounter elsewhere) > >> what do you think(of course, the second argument can also easil

Re: [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback

2013-04-29 Thread Remi Collet
Le 29/04/2013 18:46, Laruence a écrit : >so I propose to add a second argument to callback(aim to php-5.5.1), Seems a useful fix to this problem (also encounter elsewhere) > what do you think(of course, the second argument can also easily change > to be the regex idx in the regex array)?