Home
last modified time | relevance | path

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

/PHP-5.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 Dbug50810.phpt26 return method_exists($this, 'foo');
37 var_dump(method_exists($example, 'propertyFooExists'));
/PHP-5.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 ***
118 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
122 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
126 Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77)
130 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)
[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_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_003.phpt2 method_exists() on non-existent class, with __autoload().
15 var_dump(method_exists('UndefC', 'func'));
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-5.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-5.3/ext/mysqli/tests/
H A Dbug36802.phpt17 if (method_exists($mysql, 'set_charset')) {
H A Dmysqli_stmt_get_warnings.phpt68 if (!method_exists($warning, 'next'))
H A Dmysqli_get_warnings.phpt49 if (!method_exists($warning, 'next'))
/PHP-5.3/ext/xmlreader/tests/
H A D011.phpt6 if (!method_exists($reader, 'readInnerXml')) 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-5.3/ext/pdo/tests/
H A Dpdo_018.phpt116 if (method_exists($obj, 'serialize'))
/PHP-5.3/Zend/
H A Dzend_builtin_functions.c49 static ZEND_FUNCTION(method_exists);
239 ZEND_FE(method_exists, arginfo_method_exists)
1060 ZEND_FUNCTION(method_exists) in ZEND_FUNCTION() argument
/PHP-5.3/
H A DUPGRADING59 accessibility (like method_exists()).
H A DNEWS1961 - Fixed bug #52060 (Memory leak when passing a closure to method_exists()).
2669 accessibility (like method_exists()). (Felipe)
6580 - Fixed bug #32429 (method_exists() always return TRUE if __call method

Completed in 43 milliseconds