ID:               12493
 Comment by:       l-bdsm362 at hotmail dot com
 Reported By:      dengdeng at hitel dot net
 Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: Win2k
 PHP Version:      4.0.6
 New Comment:

<a href=http://l-midgets-bdsm-imag.da.ru>l bdsm</a>


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

[2001-07-31 14:49:29] [EMAIL PROTECTED]

Not a bug. a() is the constructor function of class A (remember that
function names are case-insensitive).

See http://www.php.net/manual/en/language.oop.constructor.php

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

[2001-07-31 14:46:18] dengdeng at hitel dot net

Exam1 : 

class A {

        function b() {
                echo("Hello?");
        }

}

$Ac = new A;

$Ac->b();
///////////////////////////////////////////////////////////
Exam2 : 

class A {

        function a() {
                echo("Hello?");
        }

}

$Ac = new A;

$Ac->a();
///////////////////////////////////////////////////////////

Exam1 code is once run b function but Exam2 code is two run a function.
It's bug?? or my miss?? >_<



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


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

Reply via email to