|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12493 Class bug..
Submitted: 2001-07-31 14:46 UTC Modified: 2001-07-31 14:49 UTC
From: dengdeng at hitel dot net Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.0.6 OS: Win2k
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: dengdeng at hitel dot net
New email:
PHP Version: OS:


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

class A {

	function b() {


$Ac = new A;

Exam2 : 

class A {

	function a() {


$Ac = new A;


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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-31 14:49 UTC]
Not a bug. a() is the constructor function of class A (remember that function names are case-insensitive).

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 16:03:37 2023 UTC