From:             [EMAIL PROTECTED]
Operating system: win2k
PHP version:      4.2.3
PHP Bug Type:     Class/Object related
Bug description:  method becomes constructor in subclass

In this example, the printStr() method becomes the constructor of the
printStr class, while I think it should not be working this way... I hope
this is not by design ;)

class String
{
    function printStr($string)
    {
        print $string;
    }
}
class printStr extends String {}
$ps = new printStr("abc");
-- 
Edit bug report at http://bugs.php.net/?id=22253&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22253&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22253&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22253&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22253&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22253&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22253&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22253&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22253&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22253&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22253&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22253&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22253&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22253&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22253&r=gnused

Reply via email to