ID:               44149
 Updated by:       [EMAIL PROTECTED]
 Reported By:      edwardpro dot zhu at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: RHEL 5
 PHP Version:      5.2.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

It works fine to me on 5.2.6.


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

[2008-02-18 12:22:41] edwardpro dot zhu at gmail dot com

Description:
------------
when extends father class,which declared one contruction function with
params, then you extend this class and declare one another contruction
function in it(not same the params list as his father class). Run it,
you will find something unexcepted output. You can check the code
belowed.




Reproduce code:
---------------
abstract class father{
    function father($a){
        echo "class father";
    }
}

class child extends father{
    function child(){
        echo "test";
    }
}

//run
$obj = new child('a');

Expected result:
----------------
no error,no output.

Actual result:
--------------
return wrong message: can't redeclare contraction function!


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


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

Reply via email to