#21721 [Opn]: PHP Crashes when parsing <?=echo $var?>

From: Date: Sat, 18 Jan 2003 03:41:56 +0000
Subject: #21721 [Opn]: PHP Crashes when parsing <?=echo $var?>
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30429@lists.php.net to get a copy of this message
ID: 21721 Updated by: jmcastagnetto@php.net Reported By: php@nudenurd.com Status: Open Bug Type: Reproducible crash Operating System: Slackware 8.1 PHP Version: 4.2.3 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#30429) next »