ID:               9416
 Updated by:       [EMAIL PROTECTED]
-Reported By:      [EMAIL PROTECTED]
+Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to