[PHP-DEV] PHP 4.0 Bug #9712 Updated: zend_is_callable clobbers values if using arrays as parameters for preg_replace

2001-03-13 Thread andrei

ID: 9712
Updated by: andrei
Reported By: [EMAIL PROTECTED]
Old-Status: Assigned
Status: Closed
Bug Type: PCRE related
Assigned To: andrei
Comments:

Removed /F modifier from preg_replace(), created preg_replace_callback() function 
instead.

Previous Comments:
---

[2001-03-12 15:47:53] [EMAIL PROTECTED]
Ok, I'll check into this..

-Andrei


---

[2001-03-12 14:37:22] [EMAIL PROTECTED]
$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.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9712&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9712 Updated: zend_is_callable clobbers values if using arrays as parameters for preg_replace

2001-03-12 Thread sniper

ID: 9712
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: PCRE related
Assigned To: andrei
Comments:

Ok, I'll check into this..

-Andrei


Previous Comments:
---

[2001-03-12 14:37:22] [EMAIL PROTECTED]
$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.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9712&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]