PHP 4.0 Bug #9109 Updated: Comments and regular expressions make problems
| From: | stas@php.net | Date: | Tue, 06 Mar 2001 13:13:09 +0000 |
| Subject: | PHP 4.0 Bug #9109 Updated: Comments and regular expressions make problems | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48035@lists.php.net to get a copy of this message | ||
ID: 9109
Updated by: stas
Reported By: php@tricos.com
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Right. Engine cannot parse your comments as if they were PHP
code (because they are not), so be careful.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-05 07:22:06] php@tricos.com
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?
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9109&edit=2