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