Bug #3532: Crash in NTDLL due to a parse error

From: Date: Fri, 18 Feb 2000 19:43:43 +0000
Subject: Bug #3532: Crash in NTDLL due to a parse error
Groups: php.dev 
Request: Send a blank email to php-dev+get-15679@lists.php.net to get a copy of this message
From: djonexx@wuzwuz.nuigalway.ie Operating system: Win NT 4.0, SP6a; Apache 1.3.6 on win32, running as service PHP version: 3.0.14 PHP Bug Type: Reproduceable crash Bug description: Crash in NTDLL due to a parse error <?php $queryString = "SELECT * FROM MUNTI ORDER BY IN_HARTA ASC"; $dbConnect = odbc_connect("MUNTIDB", "", "", SQL_CUR_USE_ODBC); if($dbConnect) { $muntidb = odbc_exec($dbConnect, $queryString); while($row = odbc_fetch_row($muntidb)) { $idZona = odbc_result($muntidb, "IN_HARTA"); $queryListString = "SELECT ZONEDEF.X,ZONEDEF.Y FROM ZONEDEF WHERE ZONEDEF.ID_ZONA = $idZona"; $zonadb = odbc_exec($dbConnect, $queryListString); print "<area shape=\"poly\" coords=\""; $bVirgula = 0; $fx = 0; $fy = 0; while($row2 = odbc_fetch_row($zonadb)) { $x = odbc_result($zonadb, 1); $y = odbc_result($zonadb, 2); if($bVirgula) { print ","; $fx = $x; $fy = $y; //} print "$x,$y"; $bVirgula = 1; } print "$fx,$fy"; print "\" href=\"javascript:showMountain($idZona)\" target=\"tr_navigator\" title=\"" . odbc_result($muntidb, "NAME") ."\">"; } odbc_close($dbConnect); } ?> Seems like the missing closing bracket for the if($bVirgula) block is causing an Access Violation error in the NTDLL.DLL at adress 0x77F6754B. The call stack was NTDLL.DLL 0x77F6754B PHP.EXE 0x0041E652 PHP.EXE 0x00436774

« previous php.dev (#15679) next »