#40784 [Opn->Asn]: Case sensivity in constructor's fallback

From: Date: Mon, 12 Mar 2007 12:38:44 +0000
Subject: #40784 [Opn->Asn]: Case sensivity in constructor's fallback
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110234@lists.php.net to get a copy of this message
 ID:               40784
 Updated by:       tony2001@php.net
 Reported By:      colder@php.net
-Status:           Open
+Status:           Assigned
 Bug Type:         Scripting Engine problem
 Operating System: Irrelevant
 PHP Version:      5.2.1
-Assigned To:      
+Assigned To:      tony2001


Previous Comments:
------------------------------------------------------------------------

[2007-03-12 12:31:44] 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()


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40784&edit=1


Thread (3 messages)

« previous php.bugs (#110234) next »