Re: Re: Segfault with PHP and bison 1.875(a)
| From: | Paul Eggert | Date: | Mon, 06 Oct 2003 20:57:09 +0000 |
| Subject: | Re: Re: Segfault with PHP and bison 1.875(a) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4695@lists.php.net to get a copy of this message | ||
Zeev Suraski <zeev@zend.com> writes:
> Do you experience this bug with PHP 4.3.2?
Here's how I tried to reproduce the problem. I am running Debian
GNU/Linux 3.0r1 (stable) with Bison 1.875.
wget http://downloads.php.net/ilia/php-4.3.4RC1.tar.bz2
tar xjf php-4.3.4RC1.tar.bz2
cd php-4.3.4RC1
./configure --prefix=/tmp/prefix
make
touch Zend/zend_ini_parser.y Zend/zend_language_parser.y
make
echo foo | ./sapi/cli/php
The last command outputs "Parse error: syntax error, unexpected
T_NUM_STRING in - on line 2". I don't use PHP, so I don't know
whether this is the correct answer for PHP (I don't use PHP), but it's
not a core dump so I am not reproducing the exact problem.
The "touch" command causes the 2nd make to rebuild the two parsers
using Bison 1.875.
Perhaps someone who is experiencing the problem can try the above
recipe, and we can compare notes.