PHP 4.0 Bug #9109: Comments and regular expressions make problems

From: Date: Mon, 05 Feb 2001 12:22:06 +0000
Subject: PHP 4.0 Bug #9109: Comments and regular expressions make problems
Groups: php.dev 
Request: Send a blank email to php-dev+get-45764@lists.php.net to get a copy of this message
From: php@tricos.com Operating system: Redhat Linux 7 PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: Comments and regular expressions make problems This is a problem: /* $pnr=preg_replace("/[a-zA-Z]*/", "", $pnr); */ As you can see this is a line that has been commented out. The problem is that the engine thinks that the "*/" within the REGEX itself is the end of the comment making it impossible to comment this line out. This is a big problem if you have a whole block of expressions containing REGEX which you want to comment out! What about a fix? -- Edit Bug report at: http://bugs.php.net/?id=9109&edit=1

« previous php.dev (#45764) next »