ID: 49182 Updated by: j...@php.net Reported By: salsi at icosaedro dot it -Status: Verified +Status: Assigned Bug Type: CGI related Operating System: * PHP Version: 5.3SVN-2009-09-04 (SVN) -Assigned To: +Assigned To: iliaa New Comment:
Ilia's fix for bug #46844 actually broke it. Previous Comments: ------------------------------------------------------------------------ [2009-09-04 08:35:46] j...@php.net http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_language_scanner.l?r1=272489&r2=273177 looks like the problem. ------------------------------------------------------------------------ [2009-09-04 07:48:19] j...@php.net Still happens using latest SVN checkout of today. ------------------------------------------------------------------------ [2009-09-04 07:41:34] j...@php.net Still borked. ------------------------------------------------------------------------ [2009-09-04 07:34:01] niklas at narhinen dot net Hi, using php 5.3.0. my script is: #!/path/to/php-cgi <?php phpinfo(); ?> and it prints "#!/path/to/php-cgi" on top of the normal phpinfo Running Debian Etch This bug needs to be reopened.. ------------------------------------------------------------------------ [2009-08-09 09:51:26] salsi at icosaedro dot it I also noted that the CGI version considers the shebang line as "generated output", and then namespace declarations are not allowed. For example: #!/usr/local/php-5.3.0/bin/php-cgi -c /home/salsi/php530/php.ini <?php namespace foo\bar; ?> tells Fatal error: Namespace declaration statement has to be the very first statement in the script in /home/salsi/php530/test.php on line 3 The CLI version /usr/local/php-5.3.0/bin/php instead works as expected and the shebang line is not displayed. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/49182 -- Edit this bug report at http://bugs.php.net/?id=49182&edit=1