PHP 4.0 Bug #4080: Crashing when using pcre_*() functions

From: Date: Sat, 08 Apr 2000 15:23:06 +0000
Subject: PHP 4.0 Bug #4080: Crashing when using pcre_*() functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-17742@lists.php.net to get a copy of this message
From: s.bergmann@seven-sense.com Operating system: Windows 2000 Professional PHP version: 4.0 Release Candidate 1 PHP Bug Type: Reproduceable crash Bug description: Crashing when using pcre_*() functions The following code fragment produces a crash of php.exe (PHP4.0RC1, ZendOptimizer Beta2) on Windows 2000 Professional: function checkDateFormat( $date ) { if( extension_loaded( "pcre" ) ) { $result = preg_match( "/^[0-9]{4}/", $date ); } else { $result = ereg( "^([0-9]{4})(-([0-9]{1,2})){0,2}( ([0-9]{1,2})){0,1} (:([0-9]{1,2})){0,2}$", $date ); } return $result; } extension_loaded( "pcre" ) returns true, which is correct.

« previous php.dev (#17742) next »