Bug #9416 Updated: ereg_replace returns "Warning: Invalid content of \{\}"

From: Date: Wed, 06 Feb 2002 04:03:46 +0000
Subject: Bug #9416 Updated: ereg_replace returns "Warning: Invalid content of \{\}"
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79308@lists.php.net to get a copy of this message
ID: 9416 Updated by: giovanni@wup.it -Reported By: bugs@sels.com +Reported By: giovanni@wup.it Status: Closed Bug Type: Regexps related Operating System: linux PHP Version: 4.0.4pl1 New Comment: Hi, i am running 4.0.6 freshly installed from redhat 7.2 i believe this bug is still alive an whell from PhormJr.php (which user to work just fine.) .... **** $ph_tkln = ereg("{{[A-z0-9_]*}}", $ph_tline, $ph_tkn); while ($ph_tkln) { $ph_sub = substr($ph_tkn[0], 2, $ph_tkln-4); $$ph_sub = ereg_replace("{{", ":{:{", $$ph_sub); $ph_tline = ereg_replace($ph_tkn[0], $$ph_sub, $ph_tline); $ph_tkln = ereg("{{[A-z0-9_]*}}", $ph_tline, $ph_tkn); } // ($ph_tkln) *** $ph_tline = ereg_replace(":{:{", "{{", $ph_tline); .... I get an error at the line marked by *** Warning: Invalid content of \{\} in /var/www/html/forms/phormjr.php3 putting slashes in front of it doesnt really work like: $ph_tkln = ereg("\\{\\{[A-z0-9_]*\\}\\}", $ph_tline, $ph_tkn); Previous Comments: ------------------------------------------------------------------------ [2001-04-10 10:08:46] sniper@php.net No feedback. If this happens also with soon to be released PHP 4.0.5, reopen this bug report with a short example script which can be used to reproduce this. --Jani ------------------------------------------------------------------------ [2001-03-08 10:12:12] stas@php.net Could you please provide an example of the string where it happens? Also, could you post a ereg call you are using? ------------------------------------------------------------------------ [2001-02-22 21:08:14] bugs@sels.com i have that odd message if i call up ereg_replace on a big string,(small html page from post). i made an grep on the php source, and i did not find it ...? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=9416&edit=1

« previous php.dev (#79308) next »