[PHP-DEV] Bug #12493 Updated: Class bug.. From: jeroen <email protected>
Date: 07/31/01

ID: 12493
Updated by: jeroen
Reported By: dengdeng <email protected>
Old Status: Open
Status: Bogus
Bug Type: Class/Object related
Operating System: Win2k
PHP Version: 4.0.6
New Comment:

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

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

[2001-07-31 14:46:18] dengdeng <email protected>

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>