2 /* Prototype : proto array get_declared_interfaces()
3 * Description: Returns an array of all declared interfaces.
4 * Source code: Zend/zend_builtin_functions.c
9 echo "*** Testing get_declared_interfaces() : autoloading of interfaces ***\n";
11 function __autoload($class_name) {
12 require_once $class_name . '.inc';
15 echo "\n-- before interface is used --\n";
16 var_dump(in_array('AutoInterface', get_declared_interfaces()));
19 echo "\n-- after interface is used --\n";
20 class Implementor
implements AutoInterface
{}
21 var_dump(in_array('AutoInterface', get_declared_interfaces()));