Bug #54093 [Opn->Wfx]: problem error process string
| From: | rasmus@php.net | Date: | Thu, 24 Feb 2011 17:07:02 +0000 |
| Subject: | Bug #54093 [Opn->Wfx]: problem error process string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159019@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54093&edit=1
ID: 54093
Updated by: rasmus@php.net
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