From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 5CVS-2004-07-30 (dev)
PHP Bug Type: Unknown/Other Function
Bug description: php_check_syntax second argument doesn't work in the right way
Description:
------------
The second argument of php_check_syntax is supposed to be passed by
reference. However, you need to specify the reference where the function
is called, like php_check_syntax($file, &$error); resulting in
Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the
declaration of php_check_syntax(). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true in
your INI file. However, future versions may not support this any longer.
Reproduce code:
---------------
php_check_syntax("test.php", $error);
Expected result:
----------------
errorstring in $error
Actual result:
--------------
Notice: Undefined variable: error
--
Edit bug report at http://bugs.php.net/?id=29454&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29454&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29454&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29454&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29454&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29454&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29454&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29454&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29454&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29454&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29454&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29454&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29454&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29454&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29454&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29454&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29454&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29454&r=float