Home
last modified time | relevance | path

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

/PHP-7.2/ext/spl/tests/
H A Dclass_uses_variation1.phpt2 SPL: Test class_uses() function : variation
5 /* Prototype : array class_uses(mixed what [, bool autoload ])
11 echo "*** Testing class_uses() : variation ***\n";
108 var_dump( class_uses($value, $autoload) );
116 *** Testing class_uses() : variation ***
119 Error: 2 - class_uses(): object or string expected, %s(%d)
123 Error: 2 - class_uses(): object or string expected, %s(%d)
127 Error: 2 - class_uses(): object or string expected, %s(%d)
131 Error: 2 - class_uses(): object or string expected, %s(%d)
135 Error: 2 - class_uses(): object or string expected, %s(%d)
[all …]
H A Dclass_uses_variation.phpt2 SPL: Test class_uses() function : variation - no interfaces and autoload
5 /* Prototype : array class_uses(mixed what [, bool autoload ])
11 echo "*** Testing class_uses() : variation ***\n";
15 var_dump(class_uses(new fs));
16 var_dump(class_uses('fs'));
23 var_dump(class_uses('non_existent'));
24 var_dump(class_uses('non_existent2', false));
29 *** Testing class_uses() : variation ***
39 Warning: class_uses(): Class non_existent does not exist and could not be loaded in %s on line %d
42 Warning: class_uses(): Class non_existent2 does not exist in %s on line %d
H A Dclass_uses_basic2.phpt2 SPL: Test class_uses() function : basic
5 /* Prototype : array class_uses(mixed what [, bool autoload ])
11 echo "*** Testing class_uses() : basic ***\n";
29 s_var_dump(class_uses(new foobarUser));
30 s_var_dump(class_uses('foobarUser'));
31 s_var_dump(class_uses(new fooViaBarUser));
32 s_var_dump(class_uses('fooViaBarUser'));
33 s_var_dump(class_uses(new fooExtended));
34 s_var_dump(class_uses('fooExtended'));
44 *** Testing class_uses() : basic ***
H A Dclass_uses_basic.phpt5 /* Prototype : array class_uses(mixed what [, bool autoload ])
11 echo "*** Testing class_uses() : basic ***\n";
17 var_dump(class_uses(new bar));
18 var_dump(class_uses('bar'));
24 *** Testing class_uses() : basic ***
H A Dclass_uses_variation2.phpt2 SPL: Test class_uses() function : variation
5 /* Prototype : array class_uses(mixed what [, bool autoload ])
11 echo "*** Testing class_uses() : variation ***\n";
110 var_dump( class_uses($class, $value) );
118 *** Testing class_uses() : variation ***
175 Error: 2 - class_uses() expects parameter 2 to be boolean, array given, %s(%d)
179 Error: 2 - class_uses() expects parameter 2 to be boolean, array given, %s(%d)
183 Error: 2 - class_uses() expects parameter 2 to be boolean, array given, %s(%d)
187 Error: 2 - class_uses() expects parameter 2 to be boolean, array given, %s(%d)
239 Error: 2 - class_uses() expects parameter 2 to be boolean, object given, %s(%d)
[all …]
/PHP-7.2/ext/spl/
H A Dphp_spl.h71 PHP_FUNCTION(class_uses);
H A Dphp_spl.c149 PHP_FUNCTION(class_uses) in PHP_FUNCTION() argument
962 PHP_FE(class_uses, arginfo_class_uses)

Completed in 12 milliseconds