1--TEST-- 2Bug #40784 (Case sensivity in constructor's fallback) 3--FILE-- 4<?php 5 6class A { 7 function A () { echo "I'm A\n"; } 8} 9 10class B extends A { 11 function __construct() { 12 parent::__construct(); 13 parent::__constrUct(); 14 } 15} 16 17$b = new B; 18 19echo "Done\n"; 20?> 21--EXPECTF-- 22Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; A has a deprecated constructor in %s on line %d 23I'm A 24I'm A 25Done 26