php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32346 "syntax error, unexpected T_WHITESPACE" in every script
Submitted: 2005-03-17 02:39 UTC Modified: 2005-03-24 06:38 UTC
From: zxd at zhangxiaodong dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.0.3 OS: RedHat Linux AS3 2.4.21-20 i686
Private report: No CVE-ID: None
 [2005-03-17 02:39 UTC] 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 />


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-18 19:21 UTC] sniper@php.net
What GCC version do you have? flex? bison?

 [2005-03-23 02:41 UTC] zxd at zhangxiaodong dot net
gcc   = 3.4.3
bison = 1.875c
flex  = 2.5.4
 [2005-03-23 23:46 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip


 [2005-03-24 06:38 UTC] zxd at zhangxiaodong dot net
http://snaps.php.net/php5-STABLE-latest.tar.gz is work fine. thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 05:01:30 2024 UTC