Bug #14987 Updated: ereg_replace with \0

From: Date: Fri, 11 Jan 2002 15:58:56 +0000
Subject: Bug #14987 Updated: ereg_replace with \0
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76668@lists.php.net to get a copy of this message
ID: 14987 Updated by: sander Old Summary: ereg_replace with \0 Reported By: jimmi@sancerta.com Old Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating System: Red Hat Linux PHP Version: 4.0.5 New Comment: The ereg-functions are NOT binary safe. RTM. Previous Comments: ------------------------------------------------------------------------ [2002-01-10 21:04:25] jimmi@sancerta.com 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 this bug report at http://bugs.php.net/?id=14987&edit=1

« previous php.dev (#76668) next »