php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6694 Crashes if error_reporting = E_ALL
Submitted: 2000-09-12 19:55 UTC Modified: 2000-12-30 13:57 UTC
From: fmoreira at imediata dot pt Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.2 OS: Win NT 4
Private report: No CVE-ID: None
 [2000-09-12 19:55 UTC] fmoreira at imediata dot 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);
         }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-21 04:24 UTC] sniper@php.net
Does this still happen when using PHP 4.0.3pl1 ?

--Jani
 [2000-12-30 13:57 UTC] sniper@php.net
No feedback. Considered fixed.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jul 06 23:00:01 2026 UTC