php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5695 It appears from time to time without pattern :-/
Submitted: 2000-07-20 14:35 UTC Modified: 2000-07-20 14:38 UTC
From: kalle dot alm at home dot se Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.0 OS: RedHat 6.2 linux
Private report: No CVE-ID: None
 [2000-07-20 14:35 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-20 14:38 UTC] stas at cvs dot php dot net
Please upgdate to 4.0.1pl2. Seems that you have case of memory corruption here.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 10 14:00:01 2026 UTC