|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-29 15:35 UTC] tony2001@php.net
[2004-07-29 15:49 UTC] jpearson at syntreo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 02:00:01 2025 UTC |
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