PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #5695 It appears from time to time without pattern :-/
Submitted:20 Jul 2000 2:35pm UTC Modified: 20 Jul 2000 2:38pm UTC
From:kalle dot alm at home dot se Assigned to:
Status:Closed Category:Compile Failure
Version:4.0.0 OS:RedHat 6.2 linux
View/Vote Developer Edit Submission

[20 Jul 2000 2:35pm UTC] kalle dot alm at home dot se
This works (a part of a bigger program):

if( $inforow ){      // $inforow = mysql_fetch_row( blabla ); (line 87)
  do{ // (line 88)
    if( 3==4 ){ echo( "" ); }  // couldn't solve prob so tried this...
(line 89)
    // commented away previous code, lines 90-100
    $cost = $row[1];  // $row = mysql_fetch_row( another blabla); (line
102)
  }
}

But THIS does NOT work (added a line):

[code]
    if( 3==4 ){ echo( "" ); }  // line from above, this worked (line
89)
    if( 1==1 ){ echo( "" ); }  // this does NOT work! (new line 90)

[code]

These kind of "errors" seems to appear from time to time without
notice.
They sometimes produce a "Document contained no data", and sometimes 
they produce a "parse error" error-code.

This is the error:

  "Parse error: parse error in /home/httpd/html/test.php on line 87"

Without the "new line 90" the program works fine and produce the
requested data.

Very critical bug since the error can not be traced (since there is no
error).
Thank you for looking into this.

  /Kalle Alm
[20 Jul 2000 2:38pm UTC] stas at cvs dot php dot net
Please upgdate to 4.0.1pl2. Seems that you have case of memory
corruption here.

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC