From:             kelvin at netbasic dot co dot uk
Operating system: CentOS 5
PHP version:      5.2.6
PHP Bug Type:     Class/Object related
Bug description:  Stacktrace report wrong call type

Description:
------------
When calling a static function from inside of a class the backtrace /
stacktrace reports the call as a normal object call, i.e. its showing ->,
where it really should show ::

Reproduce code:
---------------
<?php

        class testA
    {
        public function funcA()
        {
                testB::funcB();
                }
    }


        class testB
    {
        public function funcB()
        {
                echo "<pre>";
                debug_print_backtrace();
                echo "</pre>";
        }
    }
    
    $obj = new testA();
    $obj->funcA();

?>

Expected result:
----------------
#0  testB::funcB() called at [/home/site3/public_html/t1.php:7]
#1  testA->funcA() called at [/home/site3/public_html/t1.php:23]



Actual result:
--------------
#0  testB->funcB() called at [/home/site3/public_html/t1.php:7]
#1  testA->funcA() called at [/home/site3/public_html/t1.php:23]



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

Reply via email to