Edit report at http://bugs.php.net/bug.php?id=54093&edit=1
ID: 54093 Updated by: [email protected] Reported by: akbar6393222 at yahoo dot com Summary: problem error process string -Status: Open +Status: Wont fix Type: Bug Package: *Regular Expressions Operating System: WinXp, Linux PHP Version: 5.2.17 Block user comment: N Private report: N New Comment: One of the many reasons we deprecated the ereg library and thus the ereg_* functions. Use: preg_replace("/\n/"," ","\0R\0e\0g\0 \0a\0s\0k\0e\0s\0"); Previous Comments: ------------------------------------------------------------------------ [2011-02-24 17:53:49] akbar6393222 at yahoo dot com Description: ------------ # php -ver PHP 5.2.17 (cli) (built: Jan 7 2011 11:12:15) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies echo ereg_replace("\n"," ","\0R\0e\0g\0 \0a\0s\0k\0e\0s\0"); produce nothing Test script: --------------- echo ereg_replace("\n"," ","\0R\0e\0g\0 \0a\0s\0k\0e\0s\0"); Expected result: ---------------- "\0R\0e\0g\0 \0a\0s\0k\0e\0s\0" Actual result: -------------- null ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54093&edit=1
