Re: PHP 4.0 Bug #9712: zend_is_callable clobbers values if using arrays as parameters for preg_replace

From: Date: Mon, 12 Mar 2001 20:09:44 +0000
Subject: Re: PHP 4.0 Bug #9712: zend_is_callable clobbers values if using arrays as parameters for preg_replace
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-48763@lists.php.net to get a copy of this message
On Mon, 12 Mar 2001, wez@php.net wrote: > From: wez@php.net > 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. Ok, I'll check into this.. -Andrei "Someone clearly thinks that C is a garbage collected language" -- Morten Welinder

« previous php.dev (#48763) next »