From:             
Operating system: Centos 5.3
PHP version:      5.2.13
Package:          *General Issues
Bug Type:         Feature/Change Request
Bug description:Call To Member Function on Non-Object Should Throw An Exception

Description:
------------
Call to a member function on a non-object is one of the most common reasons
a php script might crash.



Granted, there's often a whole chain of responsibility that falls apart for
it to get to this point.



The problem with this fatal error is that it provides absolutely no
debugging or traceback information when it happens. PHP blows up on fatal
errors and all you're left with is a line number and no idea how it got
there.



It would be awesome if it threw an exception with it's requisite traceback
information.


-- 
Edit bug report at http://bugs.php.net/bug.php?id=51882&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51882&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51882&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51882&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51882&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51882&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51882&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51882&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51882&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51882&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51882&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51882&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51882&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51882&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51882&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51882&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51882&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51882&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51882&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51882&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51882&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51882&r=mysqlcfg

Reply via email to