xref: /PHP-7.3/Zend/tests/bug38942.phpt (revision 6ef92162)
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}
11print_r(get_class_methods("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
15Array
16(
17    [0] => foo
18)
19