#25952 [Bgs]: Parse error on line 1 - have to remove zend/*.parser.c
ID: 25952
User updated by: tim at digicol dot de
Reported By: tim at digicol dot de
Status: Bogus
Bug Type: Compile Failure
Operating System: SuSE Linux 8.2
PHP Version: 4.3.4RC2
New Comment:
Thanks a lot for the information - we will upgrade bison.
I thought these kind of errors would be handled by "configure" - I'd
expect ./configure to fail and state "Wrong bison version" when you
know that my bison won't work... (But there's probably some good reason
for not doing so.)
Previous Comments:
------------------------------------------------------------------------
[2003-10-23 22:23:15] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
PHP does not work well with that version of Byson... You should upgrade
to 1.875 which does. Or downgrade to bison 1.28
------------------------------------------------------------------------
[2003-10-23 02:06:43] tim at digicol dot de
"bison (GNU Bison) 1.75" - it's the standard bison delivered with SuSE
Linux 8.2.
------------------------------------------------------------------------
[2003-10-22 12:18:49] iliaa@php.net
Which version of bison are you using?
------------------------------------------------------------------------
[2003-10-22 09:43:47] tim at digicol dot de
Description:
------------
PHP 4.3.4RC2 seems to compiles fine, but every PHP script we call
results in a "parse error on line 1".
Thies Arntzen told us to remove zend/*.parser.c, zend/*.parser.h,
zend/*.scanner.c and then run make again - this works fine for us. But
we were hoping that this issue be resolved in 4.3.4.
We had the same problem with PHP 4.3.3 on SuSE Linux as well, and also
on an HP-UX server.
Here's the configure line:
===============================================
../php-4.3.4RC2/configure \
--with-config-file-path=/usr/local/php/conf \
--enable-track-vars \
--disable-magic-quotes \
--enable-xml \
--enable-sysvsem \
--enable-sysvshm \
--with-apxs=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--enable-wddx \
--enable-sigchild \
--enable-inline-optimization \
--disable-pear \
--enable-exif \
--with-pgsql=/usr/local/pgsql \
--prefix=/usr/local/php \
--without-mysql \
--with-oci8=/dot/oracle/product/9.2.0 \
--with-db3=/usr/local/db3 \
--with-zlib \
--with-dom \
--with-mhash=/usr/local/mhash \
--enable-mbstring=UTF-8 \
--enable-mbstr-enc-trans \
--enable-mbregex \
--disable-pic
===============================================
Reproduce code:
---------------
Any PHP script.
Actual result:
--------------
No output. error_log says:
PHP Parse error: parse error, unexpected T_STRING in <filename> on
line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25952&edit=1
Thread (6 messages)