PHP 4.0 Bug #6694: Crashes if error_reporting = E_ALL
| From: | fmoreira at imediata dot pt | Date: | Tue, 12 Sep 2000 23:55:23 +0000 |
| Subject: | PHP 4.0 Bug #6694: Crashes if error_reporting = E_ALL | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33033@lists.php.net to get a copy of this message | ||
From: fmoreira@imediata.pt
Operating system: Win NT 4
PHP version: 4.0.2
PHP Bug Type: Reproduceable crash
Bug description: Crashes if error_reporting = E_ALL
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);
}