#40706 [NEW]: preg_match crash

From: Date: Sat, 03 Mar 2007 15:12:45 +0000
Subject: #40706 [NEW]: preg_match crash
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109825@lists.php.net to get a copy of this message
From: askold2 at velo dot nsk dot ru Operating system: any PHP version: 4.4.6 PHP Bug Type: PCRE related Bug description: preg_match crash Description: ------------ the regular expression like ((any text)*(other text)*)* produce the hang or crash of PHP program. In the previous versions of php all worked properly. Reproduce code: --------------- $subj="sdfgsdg"; if(preg_match('/^((a)*(b)*)*$/',$subj)) echo "match"; else echo "not match"; Expected result: ---------------- "match" or "not match" printing Actual result: -------------- nothing. the hung of script on my unux hosting and breaking program in windows -- Edit bug report at http://bugs.php.net/?id=40706&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40706&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40706&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40706&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40706&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40706&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40706&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40706&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40706&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40706&r=support Expected behavior: http://bugs.php.net/fix.php?id=40706&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40706&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40706&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40706&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40706&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40706&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40706&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40706&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40706&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40706&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40706&r=mysqlcfg

« previous php.bugs (#109825) next »