PHP 4.0 Bug #6053: commenting with // and ?>
| From: | wico at cnh dot nl | Date: | Thu, 10 Aug 2000 02:25:23 +0000 |
| Subject: | PHP 4.0 Bug #6053: commenting with // and ?> | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28264@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux
PHP version: 4.0 Latest CVS (09/08/2000)
PHP Bug Type: Scripting Engine problem
Bug description: commenting with // and ?>
hiya
i ran into some strange behaviour of //
i commented this line with //
$data =
preg_replace("'(<A\s.*?>.*?)?([a-z0-9_.=-]+@(?:[a-z0-9-]+\.)+(?:[a-z]{2,3}))((?(1).*?</A>))'imeS"
, 'Html_Make_Email_Links_Helper("\\1", "\\2", "\\3");' ,
&$data);
and i got a parse error (because of the ?> inside of the regex)
but is commented out and it is betweern quotes so i shouldn't complain
when i commented it out with /**/ theres no problem
greetz,
Wico