#25952 [Com]: Parse error on line 1 - have to remove zend/*.parser.c
| From: | kangshut at dreamwiz dot com | Date: | Thu, 05 Feb 2004 09:01:43 +0000 |
| Subject: | #25952 [Com]: Parse error on line 1 - have to remove zend/*.parser.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54438@lists.php.net to get a copy of this message | ||
ID: 25952
Comment by: kangshut at dreamwiz dot com
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:
Warning: Unknown(): Your script possibly relies on a session
side-effect which existed until PHP 4.2.3. Please be advised that the
session extension does not consider global variables as a source of
data, unless register_globals is enabled. You can disable this
functionality and this warning by setting session.bug_compat_42 or
session.bug_compat_warn to off, respectively. in Unknown on line 0
what is it?
please help me.
Previous Comments:
------------------------------------------------------------------------
[2003-10-24 03:29:43] tim at digicol dot de
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.)
------------------------------------------------------------------------
[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