Home
last modified time | relevance | path

Searched refs:method_exists (Results 1 – 25 of 28) sorted by relevance

12

/PHP-7.3/Zend/tests/
H A Dmethod_exists_002.phpt2 Testing method_exists()
40 var_dump(method_exists('baz', 'stat_a'));
41 var_dump(method_exists('baz', 'stat_b'));
42 var_dump(method_exists('baz', 'stat_c'));
44 var_dump(method_exists('baz', 'stat_a2'));
45 var_dump(method_exists('baz', 'stat_b2'));
46 var_dump(method_exists('baz', 'stat_c2'));
50 var_dump(method_exists($baz, 'method_a'));
54 var_dump(method_exists($baz, 'stat_a'));
55 var_dump(method_exists($baz, 'stat_b'));
[all …]
H A Dmethod_exists.phpt2 method_exists() segfaults
6 var_dump(method_exists('testclass','testfunc'));
7 var_dump(method_exists('testclass','nonfunc'));
H A Dbug32429.phpt2 Bug #32429 (method_exists() always return TRUE if __call method exists)
8 var_dump(method_exists($this, 'test'));
10 if (method_exists($this, 'test')) {
H A Dbug52060.phpt2 Bug #52060 (Memory leak when passing a closure to method_exists())
8 var_dump(method_exists($closure, '__invoke')); // true
H A Dbug76901.phpt2 Bug #76901: method_exists on SPL iterator passthrough method corrupts memory
9 if (method_exists($it, 'offsetGet')) {
H A Dbug50810.phpt26 return method_exists($this, 'foo');
37 var_dump(method_exists($example, 'propertyFooExists'));
/PHP-7.3/ext/standard/tests/class_object/
H A Dmethod_exists_error_001.phpt2 Test method_exists() function : error conditions - wrong number of args
5 /* Prototype : proto bool method_exists(object object, string method)
11 echo "*** Testing method_exists() : error conditions ***\n";
14 //Test method_exists with one more than the expected number of arguments
19 var_dump( method_exists($object, $method, $extra_arg) );
21 // Testing method_exists with one less than the expected number of arguments
24 var_dump( method_exists($object) );
29 *** Testing method_exists() : error conditions ***
31 -- Testing method_exists() function with more than expected no. of arguments --
33 Warning: method_exists() expects exactly 2 parameters, 3 given in %s on line 16
[all …]
H A Dmethod_exists_variation_003.phpt2 Test method_exists() function : variation - Case sensitivity
5 /* Prototype : proto bool method_exists(object object, string method)
11 echo "*** Testing method_exists() : variation ***\n";
17 var_dump(method_exists(new casesensitivitytest, 'myMetHOD'));
18 var_dump(method_exists('casesensiTivitytest', 'myMetHOD'));
23 *** Testing method_exists() : variation ***
H A Dmethod_exists_variation_002.phpt2 Test method_exists() function : usage variations - unexpected type for arg 2
5 /* Prototype : proto bool method_exists(object object, string method)
20 echo "*** Testing method_exists() : usage variations ***\n";
80 var_dump( method_exists($object, $value) );
86 *** Testing method_exists() : usage variations ***
119 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
124 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
129 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
134 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
139 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
[all …]
H A Dmethod_exists_basic_002.phpt2 method_exists() on internal classes
13 var_dump(method_exists("exception", "getmessage"));
15 var_dump(method_exists("stdclass", "nonexistent"));
19 var_dump(method_exists(new exception, "getmessage"));
21 var_dump(method_exists(new stdclass, "nonexistent"));
H A Dmethod_exists_basic_003.phpt2 method_exists() on non-existent class, with __autoload().
15 var_dump(method_exists('UndefC', 'func'));
H A Dmethod_exists_variation_001.phpt2 Test method_exists() function : usage variations - unexpected type for arg 1
5 /* Prototype : proto bool method_exists(object object, string method)
20 echo "*** Testing method_exists() : usage variations ***\n";
81 var_dump( method_exists($value, $method) );
87 *** Testing method_exists() : usage variations ***
H A Dmethod_exists_basic_001.phpt2 method_exists() on userspace classes; static & non-static methods with various visibilities.
40 var_dump(method_exists("C", $method));
47 var_dump(method_exists($myC, $method));
/PHP-7.3/ext/mysqli/tests/
H A Dbug32490.phpt7 var_dump(method_exists("mysqli", "mysqli"));
8 var_dump(method_exists("mysqli", "__construct"));
H A Dbug36802.phpt17 if (method_exists($mysql, 'set_charset')) {
H A Dmysqli_stmt_get_warnings.phpt71 if (!method_exists($warning, 'next'))
H A Dmysqli_get_warnings.phpt49 if (!method_exists($warning, 'next'))
/PHP-7.3/ext/date/tests/
H A DDateInterval_format_a.phpt10 if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist");
H A DDateInterval_format.phpt10 <?php if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); ?>
/PHP-7.3/ext/xmlreader/tests/
H A D011.phpt6 if (!method_exists($reader, 'readInnerXml')) print "skip";
H A Dexpand_error.phpt7 if (!method_exists($reader, 'expand')) print "skip";
H A Dexpand.phpt7 if (!method_exists($reader, 'expand')) print "skip";
H A D013.phpt5 <?php if (!method_exists('XMLReader','setSchema')) die('skip XMLReader::setSchema() not supported')…
/PHP-7.3/ext/zip/tests/
H A Doo_encryption.phpt6 if (!method_exists('ZipArchive', 'setEncryptionName')) die('skip encrytion not supported');
/PHP-7.3/Zend/
H A Dzend_inheritance.c1397 zend_bool method_exists; in zend_traits_init_trait_structures() local
1420 method_exists = zend_hash_exists(&trait->function_table, lcname); in zend_traits_init_trait_structures()
1421 if (!method_exists) { in zend_traits_init_trait_structures()
1489 method_exists = zend_hash_exists(&trait->function_table, lcname); in zend_traits_init_trait_structures()
1492 if (!method_exists) { in zend_traits_init_trait_structures()

Completed in 27 milliseconds

12