1--TEST-- 2Bug #38942 (Double old-style-ctor inheritance) 3--FILE-- 4<?php 5class foo { 6 public function foo() {} 7} 8 9class bar extends foo { 10} 11ReflectionClass::export("bar"); 12?> 13--EXPECTF-- 14Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in %s on line %d 15Class [ <user> class bar extends foo ] { 16 @@ %sbug38942.php 6-7 17 18 - Constants [0] { 19 } 20 21 - Static properties [0] { 22 } 23 24 - Static methods [0] { 25 } 26 27 - Properties [0] { 28 } 29 30 - Methods [1] { 31 Method [ <user, inherits foo, ctor> public method foo ] { 32 @@ %sbug38942.php 3 - 3 33 } 34 } 35} 36