#36666 [NEW]: Wrninig: Compilation failed: lookbehind assertion is not fixed length

From: Date: Thu, 09 Mar 2006 12:56:35 +0000
Subject: #36666 [NEW]: Wrninig: Compilation failed: lookbehind assertion is not fixed length
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94083@lists.php.net to get a copy of this message
From: lacak at users dot sourceforge dot net Operating system: Windows 98 PHP version: 5.1.2 PHP Bug Type: *Regular Expressions Bug description: Wrninig: Compilation failed: lookbehind assertion is not fixed length Description: ------------ It seems like bug in evaluation regular expresion in preg_match() function. See code. Reproduce code: --------------- /* 1. this produces warning */ if (preg_match("/(?<![^f]oo)(bar)/i", "xoobar")>0) echo "Match3"; /* 2. this does not produces warning */ if (preg_match("/(?<![^fo]o)(bar)/i", "xoobar")>0) echo "Match4"; Expected result: ---------------- Case 1 without warning Case 2 without warning Actual result: -------------- Case 1 with warning Case 2 without warning -- Edit bug report at http://bugs.php.net/?id=36666&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36666&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36666&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36666&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36666&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36666&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36666&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36666&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36666&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36666&r=support Expected behavior: http://bugs.php.net/fix.php?id=36666&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36666&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36666&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36666&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36666&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36666&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36666&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36666&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36666&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36666&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36666&r=mysqlcfg

« previous php.bugs (#94083) next »