#29347 [Opn->Bgs]: parse error in cgi mode but not in isapi
| From: | tony2001@php.net | Date: | Thu, 29 Jul 2004 13:35:40 +0000 |
| Subject: | #29347 [Opn->Bgs]: parse error in cgi mode but not in isapi | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63759@lists.php.net to get a copy of this message | ||
ID: 29347
Updated by: tony2001@php.net
Reported By: jpearson at syntreo dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux and Windows XP
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
Possibility to use default values with arguments passed by reference is
PHP5-only.
Check it twice, 4.3.x MUST give you an error message with ISAPI too.
Previous Comments:
------------------------------------------------------------------------
[2004-07-23 06:45:37] jpearson at syntreo dot com
Description:
------------
When in cgi mode attached php script is classed as a parse error, I
get:
[roadkill@synsrv1 roadkill]$ php -l blah.php
PHP Parse error: parse error, unexpected '=', expecting ')' in
/home/roadkill/blah.php on line 2
Errors parsing blah.php
When you run the script in isapi mode it works fine.
I tested this bug on php 4.3.4 and 4.3.9-dev on windows xp
and php 4.3.6 and 4.3.8 on Linux (Fedora Core 2)
This is NOT an issue in php 5 (on Windows at least)
This is an issue for me because I have a php syntax check in the
commitinfo file for cvs and it won't commit because it claims a parse
error.
Reproduce code:
---------------
<?php
function test(&$bar = null){
echo "No parse error!";
}
$var = "hello";
test($var);
?>
Expected result:
----------------
No parse error!
Actual result:
--------------
PHP Parse error: parse error, unexpected '=', expecting ')' in
/home/roadkill/blah.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29347&edit=1