php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25952 Parse error on line 1 - have to remove zend/*.parser.c
Submitted: 2003-10-22 09:43 UTC Modified: 2003-10-24 03:29 UTC
From: tim at digicol dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.4RC2 OS: SuSE Linux 8.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tim at digicol dot de
New email:
PHP Version: OS:

 

 [2003-10-22 09:43 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-22 12:18 UTC] iliaa@php.net
Which version of bison are you using?
 [2003-10-23 02:06 UTC] tim at digicol dot de
"bison (GNU Bison) 1.75" - it's the standard bison delivered with SuSE Linux 8.2.
 [2003-10-23 22:23 UTC] 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-24 03:29 UTC] 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.)
 [2004-02-05 04:01 UTC] kangshut at dreamwiz dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC