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

From: Date: Sat, 17 Feb 2001 18:02:29 +0000
Subject: PHP 4.0 Bug #9320 Updated: ?> is always the last (even in strings!!!)
Groups: php.dev 
Request: Send a blank email to php-dev+get-46793@lists.php.net to get a copy of this message
ID: 9320 Updated by: derick Reported By: goba@php.net Old-Status: Open Status: Bogus Bug Type: Scripting Engine problem Assigned To: Comments: This is not a bug, but documented behaviour. Previous Comments: --------------------------------------------------------------------------- [2001-02-17 12:14:46] goba@php.net 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) --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9320&edit=2

« previous php.dev (#46793) next »