From:             stian at grytoyr dot net
Operating system: SuSE Linux Professional 9.1
PHP version:      5CVS-2004-10-24 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Random parse errors with --enable-zend-multibyte

Description:
------------
Apache2 2.0.49-27.16 SuSE stock release.
Latest PHP 5.1 snapshot, compiled as follows:

./configure --with-mysql=/usr/local/mysql --with-xsl
--with-apxs2=/usr/sbin/apxs2 --with-gd --with-openssl --with-freetype2
--with-postgres --with-zlib --enable-zend-multibyte

Since I need to support UTF8 semi-natively, I have compiled PHP with
--enable-zend-multibyte. Most of the time, it seems to work ok, but every
once in a while, I get random parse errors, for example like this:

Parse error: parse error, unexpected ',' in
/srv/www/klara/webdocs/index.php on line 25

Reloading the page usually makes the error message go away, but sometimes
it will show a couple of other random error messages first. Note that
there is no editing going on between reloads, these errors really are
bogus and random.

I'm pretty sure this is related to the Zend multibyte support, because the
code was copied from a site which has run it without problems for months,
but without Zend multibyte support. 

I can't really post any code to reproduce this, since it appears only
sporadically and on random pages (at least I haven't been able to
determine a pattern). But let me know if there is something I can provide
to make this easier to debug, and I'll do my best.

The latest snapshot seems to produce fewer errors than 5.0.2, but I can't
produce any numbers. It's just a gut feeling. 

Expected result:
----------------
The page should display normally.

Actual result:
--------------
Various bogus parse errors.

-- 
Edit bug report at http://bugs.php.net/?id=30548&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30548&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30548&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30548&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30548&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30548&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30548&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30548&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30548&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30548&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30548&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30548&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30548&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30548&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30548&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30548&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30548&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30548&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30548&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30548&r=mysqlcfg

Reply via email to