ID:               28391
 Updated by:       [email protected]
 Reported By:      fred at bitwyze dot com
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Zend Engine 2 problem
 Operating System: Linux Red Hat 8.0
 PHP Version:      5.0.0RC2
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:
------------------------------------------------------------------------

[2005-01-26 04:59:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2004-05-14 00:43:26] fred at bitwyze dot com

Description:
------------
When there is a parse error in an included file before a call to
token_get_all the error is printed out and execution is stoped.

I fix the error in the include file and reload the file that is
including it and get;

"Fatal error: start-condition stack underflow in /index.php on line 4"

I reload my browser, same thing.  I hit reload for a minute or two
still getting the stack underflow error.  Then magically after some
time of hitting refresh it disapears and gives the the correct output.

If I restart the web server the stack underflow error goes away.

It happens is both php5-200405131630 and  5.0.0RC32 compiled with the
same flags

'./configure' '--with-apxs=/web/apache/bin/apxs' '--enable-track-vars'
'--enable-force-cgi-redirect' '--with-gettext'
'--with-mysql=/usr--with-freetype' '--enable-gd-native-ttf'
'--with-fdftk=/usr/local' '--with-zlib=/usr' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-tiff-dir=/usr--with-jpeg-dir=/usr'
'--with-zlib-dir=/usr' '--with-pdflib=/usr/local'
'--with-pdflibpsp=/usr/local' '--with-xml' '--with-expat-dir=/usr'
'--with-iconv=/usr/local' '--with-xmlrpc' '--enable-dbase'
'--disable-debug' '--with-pgsql'
'--with-config-file-path=/usr/local/lib/php5.ini'



Reproduce code:
---------------
<?
include('./somefile.php');

$tokens = token_get_all("<?php if (\$foo) echo \$foo; ");

echo count($tokens);
?>

somefile.php that gets included
<?

fsdo-> 

class style {
    
}
?>

Expected result:
----------------
12

Actual result:
--------------
"Fatal error: start-condition stack underflow in /index.php on line 4"



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28391&edit=1

Reply via email to