ID: 49118 Updated by: moriyo...@php.net Reported By: i-ito at ray dot co dot jp -Status: Open +Status: Bogus Bug Type: mbstring related Operating System: CentOS5.3 PHP Version: 5.2.10 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php "\\0" is a placeholder for the entire match. Previous Comments: ------------------------------------------------------------------------ [2009-07-31 07:35:06] i-ito at ray dot co dot jp Description: ------------ mb_ereg_replace can't replace to "\\0" ? Reproduce code: --------------- <?php define("TEST_STRING_0","\x0"); define("TEST_STRING_1","\x1"); // works fine echo mb_ereg_replace("\1", "\\1", TEST_STRING_1,"p"); // but not echo mb_ereg_replace("\0", "\\0", TEST_STRING_0,"p"); // and also echo mb_ereg_replace("\1", "\\0", TEST_STRING_1,"p"); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49118&edit=1