#32346 [Fbk->Opn]: "syntax error, unexpected T_WHITESPACE" in every script
| From: | zxd at zhangxiaodong dot net | Date: | Wed, 23 Mar 2005 01:41:32 +0000 |
| Subject: | #32346 [Fbk->Opn]: "syntax error, unexpected T_WHITESPACE" in every script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75730@lists.php.net to get a copy of this message | ||
ID: 32346
User updated by: zxd at zhangxiaodong dot net
Reported By: zxd at zhangxiaodong dot net
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: RedHat Linux AS3 2.4.21-20 i686
PHP Version: 5.0.3
New Comment:
gcc = 3.4.3
bison = 1.875c
flex = 2.5.4
Previous Comments:
------------------------------------------------------------------------
[2005-03-18 19:21:07] sniper@php.net
What GCC version do you have? flex? bison?
------------------------------------------------------------------------
[2005-03-17 02:39:53] zxd at zhangxiaodong dot net
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 this bug report at http://bugs.php.net/?id=32346&edit=1