PHP 4.0 Bug #6694 Updated: Crashes if error_reporting = E_ALL

From: Date: Tue, 21 Nov 2000 09:24:29 +0000
Subject: PHP 4.0 Bug #6694 Updated: Crashes if error_reporting = E_ALL
Groups: php.dev 
Request: Send a blank email to php-dev+get-38777@lists.php.net to get a copy of this message
ID: 6694 Updated by: sniper Reported By: fmoreira@imediata.pt Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: Does this still happen when using PHP 4.0.3pl1 ? --Jani Previous Comments: --------------------------------------------------------------------------- [2000-09-12 19:55:23] fmoreira@imediata.pt in PHP.INI I replaced this line error_reporting = E_ALL & ~E_NOTICE with error_reporting = E_ALL PHP crashes with this error: OleMainThreadWndName: php.exe - Aplication Error The instruction at "0x7800ff7a" referenced memory at 0x00000000. The memory could not be "read" in the log file apears this message: [12-Sep-2000 12:45:58] PHP Warning: Undefined index: 1 in funcoes.php on line 183 the code where this error occurs is within a function that is NOT called during the execution of the script: function cria3oportunidades() { global $tipoImovel; $formato_celula="width="160" background="Images/%s.gif" align="center" valign="middle""; $formato_texto="face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#3C548B""; $destaques= new imosoft_db(query_oportunidade()); $i=0; $ndestaques=5; while($i < $ndestaques && $destaques->next_record()) { $i++; $destaque[$i] = sprintf("<td $formato_celula>",$destaques->f("Imo_Tipo_Negocio")); $destaque[$i].= "<font $formato_texto><b>"; $destaque[$i].= $destaques->f("ID_Distrito") ; if($destaques->f("ID_Concelho")) $destaque[$i] .= " - " . $destaques->f("ID_Concelho"); $destaque[$i] .="<br>"; $destaque[$i].= $tipoImovel[$destaques->f("ID_Tipo_Imovel")] . " " .$destaques->f("Imo_Tipologia"); // <--- ####### ERROR HERE (line 183) ######## $destaque[$i].="</b></font></td>"; } return($destaque); } --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6694

« previous php.dev (#38777) next »