ID:               32272
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zedar at zedar dot org
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Linux 2.4.26
 PHP Version:      5CVS-2005-03-11 (dev)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Those are compile time warnings - which occur before your script starts
to execute. This means that your error reporting function can not be
called, as it's not even defined (or called).


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

[2005-03-11 04:27:16] zedar at zedar dot org

Description:
------------
I have set an error handler to handle E_ALL errors, but i 
still get standard PHP error messages in some instances. 

Reproduce code:
---------------
function debug ($errno, $errstr, $errfile, $errline, $errcontext) {
 print "<pre>";
 print "Error: $errstr";
 $backtrace = debug_backtrace ();
 $first = 1;
 $i = 1;
 foreach ($backtrace as $context) {
  if ($first) {
   $first = 0;
  } else {
   print "\n\t$i: $context[file] line $context[line]  ";
   if ($context['class']) {
    print "(".$context['class']."->".$context['function'].")";
   } elseif ($context['function']) {
    print "(".$context['function'].")";
   }
   $i++;
  }
 }
 print "</pre>"; 
}
set_error_handler ('debug', E_ALL);

Expected result:
----------------
Very verbose debug output such as: 
Error: Use of undefined constant self - assumed 'self' 
        1: /www2/wame.net/system/include/class/dbObject.php 
line 169  (dbObject->cacheData) 
        2: /www2/wame.net/system/include/class/dbObject.php 
line 128  (ProviderRealm->cacheData) 
        3: /www2/wame.net/system/include/class/dbObject.php 
line 240  (ProviderRealm->dbRead) 
        4: /www2/wame.net/system/include/class/dbObject.php 
line 203  (ProviderRealm->dbWrite) 
        5: /www2/wame.net/system/include/class/dbObject.php 
line 203  (Provider->__destruct) 
        6: /www2/wame.net/system/include/class/dbObject.php 
line 203  (Provider->dbWrite) 
        7:  line   (dbObject->__destruct) 

Actual result:
--------------
Note that this is not the same error as above, as this 
error is the one the handler doesn't deal with properly. 
 
Fatal error: Access to undeclared static property:  
dbObject::$_elements  
in /www2/wame.net/system/include/class/dbObject.php on  
line 212  


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


-- 
Edit this bug report at http://bugs.php.net/?id=32272&edit=1

Reply via email to