Home
last modified time | relevance | path

Searched refs:class_uses (Results 1 – 8 of 8) sorted by relevance

/php-src/ext/spl/tests/
H A Dclass_uses_variation.phpt2 SPL: Test class_uses() function : variation - no interfaces and autoload
5 echo "*** Testing class_uses() : variation ***\n";
9 var_dump(class_uses(new fs));
10 var_dump(class_uses('fs'));
17 var_dump(class_uses('non_existent'));
18 var_dump(class_uses('non_existent2', false));
22 *** Testing class_uses() : variation ***
32 Warning: class_uses(): Class non_existent does not exist and could not be loaded in %s on line %d
35 Warning: class_uses(): Class non_existent2 does not exist in %s on line %d
H A Dclass_uses_variation1.phpt2 SPL: Test class_uses() function : variation
5 echo "*** Testing class_uses() : variation ***\n";
103 var_dump( class_uses($value, $autoload) );
113 *** Testing class_uses() : variation ***
116 class_uses(): Argument #1 ($object_or_class) must be of type object|string, int given
119 class_uses(): Argument #1 ($object_or_class) must be of type object|string, int given
122 class_uses(): Argument #1 ($object_or_class) must be of type object|string, int given
125 class_uses(): Argument #1 ($object_or_class) must be of type object|string, int given
155 class_uses(): Argument #1 ($object_or_class) must be of type object|string, null given
173 Error: 2 - class_uses(): Class does not exist and could not be loaded, %s(%d)
[all …]
H A Dclass_uses_basic2.phpt2 SPL: Test class_uses() function : basic
5 echo "*** Testing class_uses() : basic ***\n";
23 s_var_dump(class_uses(new foobarUser));
24 s_var_dump(class_uses('foobarUser'));
25 s_var_dump(class_uses(new fooViaBarUser));
26 s_var_dump(class_uses('fooViaBarUser'));
27 s_var_dump(class_uses(new fooExtended));
28 s_var_dump(class_uses('fooExtended'));
37 *** Testing class_uses() : basic ***
H A Dclass_uses_basic.phpt5 echo "*** Testing class_uses() : basic ***\n";
11 var_dump(class_uses(new bar));
12 var_dump(class_uses('bar'));
17 *** Testing class_uses() : basic ***
H A Dbug77360.phpt2 Bug #77360: class_uses causes segfault
9 var_dump(class_uses($str, false));
10 var_dump(class_uses($str, false));
/php-src/ext/spl/
H A Dphp_spl_arginfo.h66 ZEND_FUNCTION(class_uses);
83 ZEND_FE(class_uses, arginfo_class_uses)
H A Dphp_spl.stub.php24 function class_uses($object_or_class, bool $autoload = true): array|false {} function
H A Dphp_spl.c128 PHP_FUNCTION(class_uses) in PHP_FUNCTION() argument

Completed in 10 milliseconds