#31211 [Opn->Bgs]: Remark bug
| From: | derick@php.net | Date: | Mon, 20 Dec 2004 23:20:49 +0000 |
| Subject: | #31211 [Opn->Bgs]: Remark bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70739@lists.php.net to get a copy of this message | ||
ID: 31211
Updated by: derick@php.net
Reported By: pulstar at ig dot com dot br
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Linux Debian
PHP Version: 4.3.9
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
Read the manual on comments.
Previous Comments:
------------------------------------------------------------------------
[2004-12-20 23:25:12] pulstar at ig dot com dot br
Description:
------------
May be is a problem with remark (//) and PHP tags (<?php ?>), I don't
know. PHP thinks that the ?> inside a string define the last PHP code
in the page when the line is commented. But it is not. When the line is
uncommented, it works fine.
Reproduce code:
---------------
<?php
$my_template=chr(63)."><html>
<head><title>Test</title></head>
<body>
{content}
</body>
</html>";
//echo eval(str_replace("{content}","<?php echo phpinfo();
?>",$my_template));
echo " With this example you can see some of the PHP code in the
browser. ";
echo " But, if you uncomment the line above, it will work fine. Why?
";
?>
Expected result:
----------------
PHP Version 4.3.9
*** all phpinfo() data here ***
With this example you can see some of the PHP code in the browser. But,
if you uncomment the line above, it will work fine. Why?
Actual result:
--------------
",$my_template)); echo " With this example you can see some of the PHP
code in the browser. "; echo " But, if you uncomment the line above, it
will work fine. Why? "; ?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31211&edit=1