From:             [EMAIL PROTECTED]
Operating system: LINUX
PHP version:      4.0.6
PHP Bug Type:     *Regular Expressions
Bug description:  $ can't be escaped when using ereg function

Please see the codes below:

$arrfile = '<?include("$DOCUMENT_ROOT/TEMPLATES/TOP-BANNER.HTM");?>';

        print "good\n";
        print "bad\n";


The result will return "bad" because the eregi can't find the expression in
the $arrfile. If I removed the $, it will return "good". I guess "$" can't
be escaped inside the eregi function. Please help.

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to