1--TEST-- 2ZE2 The child class can re-use the parent class name for a function member 3--FILE-- 4<?php 5class base { 6 function base() { 7 echo __CLASS__."::".__FUNCTION__."\n"; 8 } 9} 10 11class derived extends base { 12 function base() { 13 echo __CLASS__."::".__FUNCTION__."\n"; 14 } 15} 16 17$obj = new derived(); 18$obj->base(); 19?> 20--EXPECTF-- 21Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; base has a deprecated constructor in %s on line %d 22base::base 23derived::base 24