PHP 4.0 Bug #9320: ?> is always the last (even in strings!!!)

From: Date: Sat, 17 Feb 2001 17:14:46 +0000
Subject: PHP 4.0 Bug #9320: ?> is always the last (even in strings!!!)
Groups: php.dev 
Request: Send a blank email to php-dev+get-46792@lists.php.net to get a copy of this message
From: goba@php.net Operating system: win2k PHP version: 4.0.3pl1 PHP Bug Type: Scripting Engine problem Bug description: ?&gt; is always the last (even in strings!!!) See this code: <?php echo "<?php echo 'test'; ?>"; ?> This works good. And prints: <?php echo 'test'; ?> which it should print. Then using a comment: <?php #echo "<?php echo 'test'; ?>"; ?> This prints: "; ?> The ?> is recognized in the string, although it should not be recognized I think!!! This is a problem if you generate php pages, as Smarty does for expample... (phpinsider.com) -- Edit Bug report at: http://bugs.php.net/?id=9320&edit=1

« previous php.dev (#46792) next »