|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-02-22 21:08 UTC] bugs at sels dot 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 ...? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
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);