[PHP-DEV] PHP 4.0 Bug #6694 Updated: Crashes if error_reporting = E_ALL From: sniper <email protected>
Date: 12/30/00

ID: 6694
Updated by: sniper
Reported By: fmoreira <email protected>
Old-Status: Feedback
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:

No feedback. Considered fixed.

--Jani

Previous Comments:
---------------------------------------------------------------------------

[2000-11-21 04:24:29] sniper <email protected>
Does this still happen when using PHP 4.0.3pl1 ?

--Jani

---------------------------------------------------------------------------

[2000-09-12 19:55:23] fmoreira <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>