php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26792 Parse error: parse error, unexpected T_WHITESPACE
Submitted: 2004-01-05 07:16 UTC Modified: 2004-01-15 01:08 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: fletch at kmv dot ru Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4CVS-2004-01-05 (stable) OS: fedora core 1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
28 + 38 = ?
Subscribe to this entry?

 
 [2004-01-05 07:16 UTC] fletch at kmv dot ru
Description:
------------
CFLAGS="${CFLAGS:--O2 -g -march=i386 -mcpu=i686}" ; export CFLAGS ;
  CXXFLAGS="${CXXFLAGS:--O2 -g -march=i386 -mcpu=i686}" ; export CXXFLAGS ;
  FFLAGS="${FFLAGS:--O2 -g -march=i386 -mcpu=i686}" ; export FFLAGS ;
  ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu \
	--target=i386-redhat-linux \
	--program-prefix= \
	--prefix=/usr \
	--exec-prefix=/usr \
	--bindir=/usr/bin \
	--sbindir=/usr/sbin \
	--sysconfdir=/etc/httpd/ \
	--datadir=/usr/share \
	--includedir=/usr/include \
	--libdir=/usr/lib \
	--libexecdir=/usr/libexec \
	--localstatedir=/var \
	--sharedstatedir=/usr/com \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info \
	--prefix=/usr \
	--with-config-file-path=/etc/httpd/ \
        --enable-force-cgi-redirect \
	--disable-debug \
	--enable-pic \
	--disable-rpath \
	--enable-inline-optimization \
	--with-bz2 \
	--with-mod_charset \
	--with-curl \
	--with-db4 \
	--with-exec-dir=/usr/bin \
	--with-freetype-dir=/usr \
	--with-gd \
	--with-gdbm \
	--with-gettext \
	--with-iconv \
	--with-jpeg-dir=/usr \
	--with-openssl \
	--with-png \
	--with-regex=system \
	--with-ttf \
	--with-xml \
	--with-zlib \
	--with-gif \
 	--with-layout=GNU \
	--enable-bcmath \
	--enable-debugger \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-safe-mode \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--enable-track-vars \
	--enable-trans-sid \
	--enable-yp \
	--enable-wddx \
	--without-oci8 \
	--without-pear \
	--with-kerberos=/usr/kerberos \
	--with-mysql=shared,/usr \

make ok
make install ok


usr/bin/php z.php

Parse error: parse error, unexpected T_WHITESPACE in /home/httpd/htdocs/z.php on line 2

Reproduce code:
---------------
z.php
<?php
phpinfo();
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-05 18:20 UTC] iliaa@php.net
Does the error occur when php is compiled without -match 
and -mcpu directives? 
 [2004-01-10 05:17 UTC] fletch at kmv dot ru
recompile without -march and -mcpu have not effect
 [2004-01-10 20:12 UTC] sniper@php.net
What bison / flex versions you have installed?
Also, try this configure line (EXACTLY AND ONLY THIS!):

# rm config.cache && ./configure --disable-all --disable-cgi
# make clean && make

Then run the script with the compiled sapi/cli/php binary.

 [2004-01-15 01:08 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 14:01:30 2024 UTC