ID: 46846 Updated by: [email protected] Reported By: hannes dot magnusson at gmail dot com Status: Open Bug Type: *Configuration Issues Operating System: Linux PHP Version: 5.3.0alpha3 Assigned To: zoe New Comment:
Although the test isn't very good at it produces far too much output the problem is in preg_match() and did not exist in PHP 5.2.6.I believe that it was probably introduced when the PCRE library was upgraded to version 7.8. From the documentation for preg_match() the maximum length of a compiled pattern is 65539, preg_match() fails with pattern strings sizes somewhere between 29738 and 29310 characters, I'm not sure what the relationship is between the string length and the compiled pattern length. Previous Comments: ------------------------------------------------------------------------ [2008-12-12 12:35:58] hannes dot magnusson at gmail dot com Description: ------------ Running ext/standard/tests/file/tempnam_variation4.phpt via run-tests.php causes regex compile failure. Reproduce code: --------------- 5.3$ TEST_PHP_EXECUTABLE=auto sapi/cli/php run-tests.php ext/standard/tests/file/tempnam_variation4.phpt Actual result: -------------- PHP Warning: preg_match(): Compilation failed: regular expression is too large at offset 35480 in /usr/src/php/5.3/run-tests.php on line 1781 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46846&edit=1
