Date: 03/12/01
- Next message: Greg Sohl: "Re: [PHP-DEV] ask for help"
- Previous message: Dan Kalowsky: "Re: [PHP-DEV] SIGFPE, FreeBSD and some PHP math functions"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] PHP 4.0 Bug #9712: zend_is_callable clobbers values if using arrays as parameters for preg_replace"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] PHP 4.0 Bug #9712: zend_is_callable clobbers values if using arrays as parameters for preg_replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: wez <email protected>
Operating system: any
PHP version: 4.0 Latest CVS (12/03/2001)
PHP Bug Type: PCRE related
Bug description: zend_is_callable clobbers values if using arrays as parameters for preg_replace
$search = array("!one!e", "!two!e");
// can be any code below
$replace = array("1", "2");
preg_replace($search, $replace, $matches)
Error message will look sth like:
failed to execute regexp code "Array".
Further investigation shows that pcre uses the new zend_is_callable which returns "Array" for the array.
--Wez.
-- Edit Bug report at: http://bugs.php.net/?id=9712&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Greg Sohl: "Re: [PHP-DEV] ask for help"
- Previous message: Dan Kalowsky: "Re: [PHP-DEV] SIGFPE, FreeBSD and some PHP math functions"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] PHP 4.0 Bug #9712: zend_is_callable clobbers values if using arrays as parameters for preg_replace"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] PHP 4.0 Bug #9712: zend_is_callable clobbers values if using arrays as parameters for preg_replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

