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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC