ID: 12493
Updated by: jeroen
Reported By: [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] [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]