From:             [EMAIL PROTECTED]
Operating system: win2k
PHP version:      4.0.3pl1
PHP Bug Type:     Scripting Engine problem
Bug description:  ?> 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



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to