ID:               27227
 Updated by:       [EMAIL PROTECTED]
 Reported By:      waboring at 3gstech dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Zend Engine 2 problem
 Operating System: *
 PHP Version:      5CVS-2004-02-11
 Assigned To:      helly
 New Comment:

This is different bug (if it even IS a bug) so report it separately and
stop reopening already fixed issue.




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

[2004-02-18 22:23:01] waboring at 3gstech dot com

because $c->bTesting() is calling the constructor of the bTesting
object. in php4, that cascades to the A class, as it should since the A
constructor exists, but the bTesting constructor doesn't.

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

[2004-02-18 21:32:58] [EMAIL PROTECTED]

There is no function called bTesting(), so why shouldn't it output an
error?? (I'd say it's bug in PHP4 where it magically works..)

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

[2004-02-18 20:32:14] waboring at 3gstech dot com

ERR 



Actually this is a more valid test.   sorry



<?php

class A {

    function A() {

        echo __CLASS__."::".__FUNCTION__." called!<br>\n";

    }

}



class bTesting extends A {



    function blah() {

        echo __CLASS__."::".__FUNCTION__."() called<br>\n";

    }

}



class c extends bTesting {

    function c() {

        echo __CLASS__."::".__FUNCTION__."() called!!<br>\n";

        $this->bTesting();

    }

}



$obj = new c();

$obj->blah();

?>



results in: 

c::c() called!!



Fatal error: Call to undefined method c::bTesting() in
/home/waboring/devel/bug.php on line 18

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

[2004-02-15 19:28:42] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



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

[2004-02-11 20:33:03] [EMAIL PROTECTED]

Works fine with PHP 4 btw. :) (somehow I think this might be one for
Marcus to fix..?)





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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/27227

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

Reply via email to