From:             jpearson at syntreo dot com
Operating system: Linux and Windows XP
PHP version:      4.3.9
PHP Bug Type:     Scripting Engine problem
Bug description:  parse error in cgi mode but not in isapi

Description:
------------
When in cgi mode attached php script is classed as a parse error, I get:

[EMAIL PROTECTED] 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 bug report at http://bugs.php.net/?id=29347&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29347&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29347&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29347&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29347&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29347&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29347&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29347&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29347&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29347&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29347&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29347&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29347&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29347&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29347&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29347&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29347&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29347&r=float

Reply via email to