ID: 14987 Updated by: sander Old Summary: ereg_replace with \0 Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]