Bug #12493 Updated: Class bug..
| From: | jeroen@php.net | Date: | Tue, 31 Jul 2001 18:49:30 +0000 |
| Subject: | Bug #12493 Updated: Class bug.. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61676@lists.php.net to get a copy of this message | ||
ID: 12493
Updated by: jeroen
Reported By: dengdeng@hitel.net
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@hitel.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