php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40784 Case sensivity in constructor's fallback
Submitted: 2007-03-12 12:31 UTC Modified: 2007-03-12 13:11 UTC
From: colder@php.net Assigned: tony2001 (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.2.1 OS: Irrelevant
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: colder@php.net
New email:
PHP Version: OS:

 

 [2007-03-12 12:31 UTC] colder@php.net
Description:
------------
When resolving a static method, there is one case where it will be case-sensitive, which I believe is bogous:

Reproduce code:
---------------
class A {
  function A () { echo "I'm A"; }
}

class B extends A {
  function __construct() {
    parent::__constrUct();
  }
}

$b = new B;

Expected result:
----------------
I'm A

Actual result:
--------------
Fatal error: Call to undefined method A::__construct()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-12 13:11 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC