ID:               36075
 Updated by:       [EMAIL PROTECTED]
 Reported By:      koukine at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: Windows XP Pro SP2
 PHP Version:      4.4.2
 New Comment:

PHP doesn't call parent constructors at all (and this is expected).
Did you actually run this code?
It produces only "BBB; ".


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

[2006-01-19 01:35:29] koukine at gmail dot com

Description:
------------
1. Parent constructor should be called first
2. This class consutructor shold be called once

Reproduce code:
---------------
<?
class A{
function A(){
print("AAA; ");
}
}

class B extends A{
function B(){
print("BBB; ");
}
}

$b = &new B();
?>




Expected result:
----------------
AAA;BBB

Actual result:
--------------
BBB; AAA; BBB;


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


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

Reply via email to