#21721 [Opn->Bgs]: PHP Crashes when parsing <?=echo $var?>
| From: | sniper@php.net | Date: | Sat, 18 Jan 2003 03:49:08 +0000 |
| Subject: | #21721 [Opn->Bgs]: PHP Crashes when parsing <?=echo $var?> | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30430@lists.php.net to get a copy of this message | ||
ID: 21721
Updated by: sniper@php.net
Reported By: php@nudenurd.com
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Slackware 8.1
PHP Version: 4.2.3
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-01-17 21:41:55] jmcastagnetto@php.net
Cannot reproduce the bug are mentioned.
Tested an equivalent script:
<?=echo "BUG\n"; ?>
Using the CLI from PHP 4.3.0, I get:
% php -f echo.php
[Error during execution of script]
Parse error: parse error, unexpected T_ECHO, expecting ',' or ';' in
/tmp/echo.php on line 1
Using PHP CGI 4.2.0 or 4.1.0 I get:
[Error during execution of script] <br />
<b>Parse error</b>: parse error, unexpected T_ECHO, expecting ',' or
';' in <b>/tmp/echo.php</b> on line <b>1</b><br />
I am using Solaris 8.
------------------------------------------------------------------------
[2003-01-17 21:38:18] php@nudenurd.com
When parsing the code, the entire script crashes without outputting
anything. And I see nothing in the logs. I think there should be an
error message outputted with this.
I'm running apache 1.27 with PHP compiled into it, not APXS.
The exact part of the script is as followed:
<?=echo $_GET['username']."@".$_USER['domain']?>
A phpinfo() page can be found here:
http://www.nudenurd.com/phpinfo.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21721&edit=1