xref: /PHP-8.2/ext/spl/tests/spl_autoload_009.phpt (revision f8d79582)
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--EXPECTF--
21%stestclass.inc
22%stestclass.class.inc
23bool(true)
24