Bug #1696: ereg function crashes php if first arg is empty

From: Date: Mon, 12 Jul 1999 17:40:36 +0000
Subject: Bug #1696: ereg function crashes php if first arg is empty
Groups: php.dev 
Request: Send a blank email to php-dev+get-8398@lists.php.net to get a copy of this message
From: danbeck@mtginfo.com Operating system: Linux 2.0.36 (RedHat 5.2) PHP version: 3.0 Latest CVS (12/07/1999) PHP Bug Type: Reproduceable crash Bug description: ereg function crashes php if first arg is empty This snippit of code: $arg1 = ""; $arg2 = "TEST"; if (ereg($arg1, $arg2, $results)): echo "CRASH!"; endif; causes php to stop execution (crash). This only happens if the first argument does not contain anything. No data is sent to the browser... This is reproducable every time.

« previous php.dev (#8398) next »