php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21721 PHP Crashes when parsing <?=echo $var?>
Submitted: 2003-01-17 21:38 UTC Modified: 2003-01-17 21:49 UTC
From: php at nudenurd dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.2.3 OS: Slackware 8.1
Private report: No CVE-ID: None
 [2003-01-17 21:38 UTC] php at nudenurd dot 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

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-17 21:41 UTC] 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:49 UTC] sniper@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 10:01:28 2024 UTC