PHP 4.0 Bug #7257 Updated: RegEx kills String

From: Date: Mon, 16 Oct 2000 19:31:13 +0000
Subject: PHP 4.0 Bug #7257 Updated: RegEx kills String
Groups: php.dev 
Request: Send a blank email to php-dev+get-35185@lists.php.net to get a copy of this message
ID: 7257 User Update by: hoglabogla@hotmail.com Status: Open Bug Type: *Regular Expressions Description: RegEx kills String Ooops! The other way round, of course: if( $mask ) echo "OK"; else echo "Empty? Hu? PHP-Bug?"; Previous Comments: --------------------------------------------------------------------------- [2000-10-16 15:29:40] hoglabogla@hotmail.com $mask= "anything"; $mask= preg_replace("/\/", "/a/", $mask); if( $mask ) echo "Empty? Hu? PHP-Bug?"; else echo "OK"; The preg_replace kills $mask, witch it shouldn't, i guess --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7257

« previous php.dev (#35185) next »