Annotation of embedaddon/php/ext/standard/tests/class_object/method_exists_basic_003.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: method_exists() on non-existent class, with __autoload().
! 3: --FILE--
! 4: <?php
! 5: /* Prototype : proto bool is_subclass_of(object object, string class_name)
! 6: * Description: Returns true if the object has this class as one of its parents
! 7: * Source code: Zend/zend_builtin_functions.c
! 8: * Alias to functions:
! 9: */
! 10:
! 11: function __autoload($name) {
! 12: echo "In __autoload($name)\n";
! 13: }
! 14:
! 15: var_dump(method_exists('UndefC', 'func'));
! 16:
! 17: echo "Done";
! 18: ?>
! 19: --EXPECTF--
! 20: In __autoload(UndefC)
! 21: bool(false)
! 22: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>