Bug #17632: ereg doesn't work correctly with (

From: Date: Thu, 06 Jun 2002 19:43:40 +0000
Subject: Bug #17632: ereg doesn't work correctly with (
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9663@lists.php.net to get a copy of this message
From: jesse@erieonline.com Operating system: Freebsd 4.5 PHP version: 4.2.1 PHP Bug Type: Unknown/Other Function Bug description: ereg doesn't work correctly with ( After doing work using the ereg function, I've discovered that the function doesn't care for '('. Everytime it is used, php will produce a warning message. If I remove the '(', the function will work, but as soon as I add it back in, the warnings reapper. if (ereg("> (", $line)) { Warning: REG_EPAREN in /usr/home/grimreapa.com/public_html/emailparse.php on line 5 -- Edit bug report at http://bugs.php.net/?id=17632&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17632&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17632&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17632&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17632&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17632&r=support Expected behavior: http://bugs.php.net/fix.php?id=17632&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17632&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17632&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17632&r=globals

« previous php.bugs (#9663) next »