Bug #14987: ereg_replace with \0
| From: | jimmi at sancerta dot com | Date: | Fri, 11 Jan 2002 02:04:25 +0000 |
| Subject: | Bug #14987: ereg_replace with \0 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76561@lists.php.net to get a copy of this message | ||
From: jimmi@sancerta.com
Operating system: Red Hat Linux
PHP version: 4.0.5
PHP Bug Type: Scripting Engine problem
Bug description: ereg_replace with \0
I have this code:
$new = ereg_replace("123", "xy\0z", "123Hai");
The result is "xy" and not "xyzHai"
Is it a bug? because it works with preg_replace.
Thanks,
Jimmi
--
Edit bug report at: http://bugs.php.net/?id=14987&edit=1