|  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: Assigned: tony2001 (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.2.1 OS: Irrelevant
Private report: No CVE-ID: None
 [2007-03-12 12:31 UTC]
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() {

$b = new B;

Expected result:
I'm A

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-12 13:11 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 18:01:25 2019 UTC