From: zxd at zhangxiaodong dot net
Operating system: RedHat Linux AS3 2.4.21-20 i686
PHP version: 5.0.3
PHP Bug Type: Compile Failure
Bug description: "syntax error, unexpected T_WHITESPACE" in every script
Description:
------------
configure/make from a folder out of PHP package folder will success but
fail when make install with error like syntax error, unexpected
T_WHITESPACE in .../pear/install-pear.php.
and sapi/cgi/php, sapi/cli/php will say same error on every script.
Reproduce code:
---------------
1. tar xzf php-5.0.3.tar.gz
2. mkdir obj
3. cd obj
4. ../php-5.0.3/configure
5. make
6. find -name php
7. cd sapi/cgi
8. vi t.php as this:
<?php
echo "hello\n";
?>
9. ./php t.php
Expected result:
----------------
hello
Actual result:
--------------
Content-type: text/html
X-Powered-By: PHP/5.0.3
<br />
<b>Parse error</b>: syntax error, unexpected T_WHITESPACE in
<b>/root/obj/sapi/cgi/t.php</b> on line <b>3</b><br />
--
Edit bug report at http://bugs.php.net/?id=32346&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32346&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32346&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32346&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32346&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32346&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32346&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32346&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32346&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32346&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32346&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32346&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32346&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32346&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32346&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32346&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32346&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32346&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32346&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32346&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32346&r=mysqlcfg