#27101 [Opn->Bgs]: Eval Error
ID: 27101
Updated by: tomsommer@php.net
Reported By: daniel dot marschall at surfeu dot de
-Status: Open
+Status: Bogus
Bug Type: *Programming Data Structures
Operating System: Linux
PHP Version: 4.3.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You can't have nested php-tags, try:
eval('if (1 == 1) { ?>works<? }');
in a sense your example does:
<?php <? if (1 == 1) { ?><? } ?> ?>
Which is wrong
Previous Comments:
------------------------------------------------------------------------
[2004-01-30 17:13:13] daniel dot marschall at surfeu dot de
Description:
------------
<?php
echo eval('<? if (1 == 1) { ?><? } ?>');
?>
This let a parse error in the eval appear.
The Code <? if (1 == 1) { ?><? } ?> is ok and don't let the parse error
appear.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27101&edit=1
Thread (6 messages)