Bug #66708 [NEW]: preg_match reports missing right-perand incorrectly

From: Date: Thu, 13 Feb 2014 16:29:17 +0000
Subject: Bug #66708 [NEW]: preg_match reports missing right-perand incorrectly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184288@lists.php.net to get a copy of this message
From: jbeecher at oneendlessloop dot com Operating system: Linux PHP version: Irrelevant Package: Regexps related Bug Type: Bug Bug description:preg_match reports missing right-perand incorrectly Description: ------------ Valid regexp: /[a-z0-9]{1,25}\s+([0-9]{3,12})\s+[.]*(\-\c)/i Test script: --------------- Example data (to grep against): blinky 5321 1 0 Feb07 ? 00:03:41 php ./di-sup.php -c 1 -i /ftpacct/max/pub/MAX -p /ftpacct/max/pub/MAX -n mixlplick -l /home/blinky/M006615/custlogs/MAX -e reports@maxic-reports.com -x rubber1333! Expected result: ---------------- preg_match() should return an array of matched values. Actual result: -------------- preg_match() returned false (not zero, but boolean false) i.e. there was an error. The error message was, "preg_match(): Compilation failed: missing ) at offset 43" Which is incorrect. -- Edit bug report at https://bugs.php.net/bug.php?id=66708&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66708&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66708&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66708&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66708&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66708&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66708&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66708&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66708&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66708&r=support Expected behavior: https://bugs.php.net/fix.php?id=66708&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66708&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66708&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66708&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66708&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66708&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66708&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66708&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66708&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66708&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66708&r=mysqlcfg

« previous php.bugs (#184288) next »