Home
last modified time | relevance | path

Searched refs:is_a (Results 1 – 15 of 15) sorted by relevance

/PHP-5.4/tests/classes/
H A Dinterface_implemented.phpt65 is_a(base, base) = yes
66 is_a(base, derived_a) = no
67 is_a(base, derived_b) = no
68 is_a(base, derived_c) = no
69 is_a(base, derived_d) = no
70 is_a(base, if_a) = no
71 is_a(base, if_b) = no
73 is_a(derived_a, base) = yes
78 is_a(derived_a, if_a) = yes
79 is_a(derived_a, if_b) = no
[all …]
H A Dinterface_doubled.phpt161 is_a(class_a, if_b) no
162 is_a(class_a, if_c) no
163 is_a(class_a, if_d) no
164 is_a(class_a, if_e) no
168 is_a(class_b, if_c) no
169 is_a(class_b, if_d) no
170 is_a(class_b, if_e) no
175 is_a(class_c, if_d) no
176 is_a(class_c, if_e) no
180 is_a(class_d, if_c) no
[all …]
/PHP-5.4/ext/standard/tests/class_object/
H A Dis_a.phpt2 is_a and is_subclass_of behaviour (with and without autoload)
20 …echo str_pad('is_a( OBJECT:'.get_class($this).', '.$sub.') = ', 60) . (is_a($this, $sub) ? 'yes' :…
21 …echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_a(get_class($this), $sub)…
22 …echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.', true) = ', 60). (is_a(get_class($this),…
29 …echo str_pad('is_a( STRING:undefB, '.$sub.',true) = ', 60). (is_a('undefB', $sub, true) ? 'yes' :…
30 …echo str_pad('is_a( STRING:undefB, '.$sub.') = ', 60). (is_a('undefB', $sub) ? 'yes' : 'no')."\n";
92 is_a( STRING:base, base) = no
98 is_a( STRING:undefB, base,true) = no
99 is_a( STRING:undefB, base) = no
104 is_a( OBJECT:base, derived_a) = no
[all …]
H A Dis_a_error_001.phpt2 Test is_a() function : error conditions - wrong number of args
13 echo "*** Testing is_a() : error conditions ***\n";
15 //Test is_a with one more than the expected number of arguments
22 var_dump( is_a($object, $class_name, $allow_string, $object) );
24 //Test is_a with one more than the expected number of arguments
26 var_dump( is_a($object, $class_name, $object) );
29 // Testing is_a with one less than the expected number of arguments
32 var_dump( is_a($object) );
38 *** Testing is_a() : error conditions ***
40 -- Testing is_a() function with more than expected no. of arguments --
[all …]
H A Dis_a_variation_003.phpt2 Test is_a() function : usage variations - case sensitivity
7 /* Prototype : proto bool is_a(object object, string class_name)
13 echo "*** Testing is_a() : usage variations ***\n";
18 var_dump(is_a(new caseSensitivityTestChild, 'caseSensitivityTEST'));
23 *** Testing is_a() : usage variations ***
H A Dis_a_variation_002.phpt2 Test is_a() function : usage variations - wrong type for arg 2
7 /* Prototype : proto bool is_a(object object, string class_name)
19 echo "*** Testing is_a() : usage variations ***\n";
79 var_dump( is_a($object, $value) );
85 *** Testing is_a() : usage variations ***
120 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
125 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
130 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
135 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
140 Warning: is_a() expects parameter 2 to be string, array given in %s on line %d
H A Dis_a_variation_001.phpt2 Test is_a() function : usage variations - wrong type for arg 1
7 /* Prototype : proto bool is_a(object object, string class_name)
12 // Note: basic use cases in Zend/tests/is_a.phpt
13 echo "*** Testing is_a() : usage variations ***\n";
74 var_dump( is_a($value, $class_name) );
80 *** Testing is_a() : usage variations ***
H A Dis_subclass_of_variation_003.phpt13 echo "*** Testing is_a() : usage variations ***\n";
24 *** Testing is_a() : usage variations ***
H A Dis_subclass_of_variation_001.phpt10 // Note: basic use cases in Zend/tests/is_a.phpt
H A Dis_subclass_of_variation_004.phpt10 // Note: basic use cases in Zend/tests/is_a.phpt
/PHP-5.4/Zend/tests/
H A Dis_a.phpt2 is_a() and is_subclass_of() shouldn't call __autoload
22 var_dump(is_a($a, "B1"));
23 var_dump(is_a($a, "A"));
24 var_dump(is_a($a, "BASE"));
25 var_dump(is_a($a, "INT"));
H A Dclosure_020.phpt13 var_dump(is_a($this->a, 'closure'));
/PHP-5.4/Zend/
H A Dzend_builtin_functions.c65 static ZEND_FUNCTION(is_a);
277 ZEND_FE(is_a, arginfo_is_subclass_of)
896 ZEND_FUNCTION(is_a) in ZEND_FUNCTION() argument
/PHP-5.4/
H A DUPGRADING327 - is_a() and is_subclass_of() now have third boolean parameter, which specifies
328 if the first argument can be a string class name. Default if false for is_a
H A DNEWS2621 . Fixed bug #55475 (is_a() triggers autoloader, new optional 3rd argument to
2622 is_a and is_subclass_of). (alan_k)
2880 . Removed warning when argument of is_a() or is_subclass_of() is not
6103 - Fixed bug #42009 (is_a() and is_subclass_of() should NOT call autoload, in the
7982 - Changed "instanceof" and "catch" operators, is_a() and is_subclass_of()

Completed in 51 milliseconds