mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
2b392c9c10
Thank you Jean-Marc Fontaine and Alter Way
19 lines
443 B
PHP
19 lines
443 B
PHP
--TEST--
|
|
spl_autoload_call() function - basic test for spl_autoload_call()
|
|
--CREDITS--
|
|
Jean-Marc Fontaine <jean-marc.fontaine@alterway.fr>
|
|
# Alter Way Contribution Day 2011
|
|
--FILE--
|
|
<?php
|
|
function customAutolader($class) {
|
|
require_once __DIR__ . '/testclass.class.inc';
|
|
}
|
|
spl_autoload_register('customAutolader');
|
|
|
|
spl_autoload_call('TestClass');
|
|
var_dump(class_exists('TestClass', false));
|
|
?>
|
|
--EXPECTF--
|
|
%stestclass.class.inc
|
|
bool(true)
|