xref: /PHP-7.4/ext/spl/tests/spl_autoload_009.phpt (revision 610c7fbe)
1--TEST--
2SPL: spl_autoload() and friends
3--INI--
4include_path=.
5--FILE--
6<?php
7
8function my_autoload($name)
9{
10	require $name . '.class.inc';
11	var_dump(class_exists($name));
12}
13
14spl_autoload_register("spl_autoload");
15spl_autoload_register("my_autoload");
16
17$obj = new testclass;
18
19?>
20===DONE===
21<?php exit(0); ?>
22--EXPECTF--
23%stestclass.inc
24%stestclass.class.inc
25bool(true)
26===DONE===
27