Home
last modified time | relevance | path

Searched refs:method (Results 51 – 75 of 1024) sorted by relevance

12345678910>>...41

/php-src/ext/reflection/tests/
H A DReflectionMethod_invokeArgs_error3.phpt47 echo "\nStatic method:\n";
51 echo "\nPrivate method:\n";
54 echo "\nAbstract method:\n";
70 string(72) "Given object is not an instance of the class this method was declared in"
72 Static method:
77 Private method:
81 Abstract method:
82 string(53) "Trying to invoke abstract method AbstractClass::foo()"
83 string(53) "Trying to invoke abstract method AbstractClass::foo()"
H A Dbug33389.phpt41 Method [ <user> public method foo1 ] {
49 Method [ <user> public method foo2 ] {
57 Method [ <user> public method foo3 ] {
65 Method [ <user> public method foo4 ] {
73 Method [ <user> public method foo5 ] {
81 Method [ <user> public method bar ] {
89 Method [ <user> public method foo ] {
H A Dbug77772.phpt8 public function method() {}
12 foreach ($rc->getMethods(null) as $method) {
13 var_dump($method->getName());
21 string(6) "method"
/php-src/Zend/tests/
H A Dindirect_call_array_005.phpt2 Dynamic static call to instance method should throw.
11 public function method()
18 $callback = ['TestClass', 'method'];
22 Fatal error: Uncaught Error: Non-static method TestClass::method() cannot be called statically in %…
H A Dindirect_call_string_003.phpt2 Dynamic static call to instance method should throw.
11 public function method()
18 $callback = 'TestClass::method';
22 Fatal error: Uncaught Error: Non-static method TestClass::method() cannot be called statically in %…
H A Dbug54910.phpt6 public function __call($method, $args) {
7 if (stripos($method, 'get') === 0) {
10 die("No such method - '$method'\n");
29 No such method - 'noSuchMethod'
H A Dclosure_compare.phpt33 public function __call($method, $args) {
77 $closures[0] = Closure::fromCallable([$foo, "method"]);
78 $closures[1] = Closure::fromCallable([$foo, "method"]);
80 printf("foo::method == foo::method: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
84 printf("foo::method != bar::method: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
86 $closures[0] = Closure::fromCallable([$foo, "method"]);
89 printf("foo::method != foo::method2: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
110 foo::method == foo::method: OK
111 foo::method != bar::method: OK
112 foo::method != foo::method2: OK
H A Dbug62441.phpt7 function method(stdClass $o);
12 function method(stdClass $o) { }
15 (new Foo)->method(new \stdClass);
19 Fatal error: Could not check compatibility between ns\Foo::method(ns\stdClass $o) and Iface::method
H A Dbug69124.phpt11 function test(&$instance, &$method) {
12 $instance->{$method}();
16 $method = "bar";
18 test($instance, $method);
H A Dbug46246.phpt2 Bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method())
12 public function call($method, $args = array())
15 $this->$method();
16 call_user_func(array($this, $method));
/php-src/scripts/dev/
H A Dsearch_underscores.php55 foreach(get_class_methods($c) as $method) {
57 if (strpos(substr($method, substr($method, 0, 2) != "__" ? 0 : 2), "_") !== false) {
59 $extensions[$ext][$c][] = $method;
87 foreach($methods as $method) {
88 echo " Method: $method\n";
/php-src/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error6.phpt9 public function method(): X {}
14 public function method(): Y {}
19 public function method(): X {}
24 public function method(): Unknown {}
39 Fatal error: Could not check compatibility between Y::method(): Unknown and X::method(): X, because…
/php-src/ext/date/tests/
H A DDateTime_clone_basic4.phpt2 Test clone of DateTime derived objects with __clone magic method
13 echo "-- DateTimeExt1 __clone magic method called --\n";
17 echo "*** Testing clone of objects derived from DateTime class with __clone magic method***\n";
22 //verify clone by calling method on new object
27 *** Testing clone of objects derived from DateTime class with __clone magic method***
28 -- DateTimeExt1 __clone magic method called --
/php-src/ext/intl/tests/
H A Dbreakiter_factories_basic.phpt15 foreach ($m as $method) {
16 echo "===== $method =====\n";
17 $o1 = IntlBreakIterator::$method('ja');
18 $o2 = IntlBreakIterator::$method(NULL);
19 $o3 = IntlBreakIterator::$method();
/php-src/ext/openssl/tests/
H A Dopenssl_seal_basic.phpt12 $method = "AES-128-ECB";
14 var_dump(openssl_seal($a, $b, $c, $d, $method));
17 var_dump(openssl_seal($a, $a, $a, array(), $method));
27 var_dump(openssl_seal($data, $sealed, $ekeys, array($pub_key), $method)); // no output
28 var_dump(openssl_seal($data, $sealed, $ekeys, array($pub_key, $pub_key), $method)); // no output
29 var_dump(openssl_seal($data, $sealed, $ekeys, array($pub_key, $wrong), $method));
32 var_dump(openssl_seal($data, $sealed, $ekeys, array(), $method));
37 var_dump(openssl_seal($data, $sealed, $ekeys, array($wrong), $method));
/php-src/sapi/cli/
H A Dphp_http_parser.c347 parser->method = PHP_HTTP_HEAD; in php_http_parser_execute()
549 parser->method = PHP_HTTP_CHECKOUT; in php_http_parser_execute()
551 parser->method = PHP_HTTP_COPY; in php_http_parser_execute()
557 parser->method = PHP_HTTP_MOVE; in php_http_parser_execute()
561 parser->method = PHP_HTTP_MERGE; in php_http_parser_execute()
563 parser->method = PHP_HTTP_MSEARCH; in php_http_parser_execute()
572 parser->method = PHP_HTTP_PUT; in php_http_parser_execute()
574 parser->method = PHP_HTTP_PATCH; in php_http_parser_execute()
576 parser->method = PHP_HTTP_SEARCH; in php_http_parser_execute()
580 parser->method = PHP_HTTP_PROPPATCH; in php_http_parser_execute()
[all …]
/php-src/sapi/phpdbg/
H A Dphpdbg_cmd.c160 dest->method.class = estrdup(src->method.class); in phpdbg_copy_param()
161 dest->method.name = estrdup(src->method.name); in phpdbg_copy_param()
179 dest->method.class = estrdup(src->method.class); in phpdbg_copy_param()
180 dest->method.name = estrdup(src->method.name); in phpdbg_copy_param()
206 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
207 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
231 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
232 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
295 strlen(l->method.class), strlen(r->method.class)}; in phpdbg_match_param()
297 if (memcmp(l->method.class, r->method.class, lengths[0]) == SUCCESS) { in phpdbg_match_param()
[all …]
/php-src/Zend/tests/closures/
H A Dclosure_from_callable_error.phpt8 echo 'Cannot access privateInstance method statically'."\n";
33 echo 'Cannot access privateInstance method'."\n";
45 echo 'SubClass cannot access private instance method'."\n";
93 echo 'Non-existent method should fail'."\n";
180 echo 'Access private instance method of parent object through "self::" to parent method'."\n";
197 Cannot access privateInstance method statically
199 Cannot access privateInstance method
200 SubClass cannot access private instance method
202 Cannot access private static method statically
204 Non-existent method should fail
[all …]
H A Dclosure_from_callable_rebinding.phpt7 public function method() {
15 $fn = Closure::fromCallable([new A, 'method']);
20 Warning: Cannot bind method A::method() to object of class B in %s on line %d
/php-src/Zend/tests/nullable_types/
H A Dcontravariant_nullable_return_fails.phpt7 function method(): int;
11 function method(): ?int;
15 Fatal error: Declaration of B::method(): ?int must be compatible with A::method(): int in %s on lin…
H A Dinvariant_param_and_return_succeeds.phpt7 function method(?int $i): ?int;
11 function method(?int $i): ?int {
17 var_dump($b->method(null));
18 var_dump($b->method(1));
H A Dcovariant_nullable_param_fails.phpt7 function method(?int $p);
11 function method(int $p) { }
15 Fatal error: Declaration of B::method(int $p) must be compatible with A::method(?int $p) in %s on l…
/php-src/ext/reflection/tests/types/
H A Dmixed_type.phpt15 $method = new ReflectionMethod($a, "test");
18 var_dump($method->getParameters()[0]->getType()->getName());
19 var_dump($method->getReturnType()->getName());
22 var_dump((string) $method->getParameters()[0]->getType());
23 var_dump((string) $method->getReturnType());
/php-src/ext/reflection/tests/internal_parameter_default_value/
H A DReflectionParameter_getDefaultValueConstantName_Internal.phpt6 $method = $class->getMethod('setTime');
8 foreach ($method->getParameters() as $parameter) {
19 $method = $class->getMethod('getTransitions');
21 foreach ($method->getParameters() as $parameter) {
32 $method = $class->getMethod('listIdentifiers');
34 foreach ($method->getParameters() as $parameter) {
/php-src/Zend/tests/type_declarations/union_types/
H A Dmultiple_classes.phpt8 public function method(X|Y|Z|int $arg): X|Y|Z|int {
22 var_dump($test->method(42));
26 var_dump($test->method("42"));
35 $test->method(new stdClass);
46 var_dump($test->method(new X));
54 var_dump($test->method(new Z));
62 var_dump($test->method(new Y));
71 Test::method(): Argument #1 ($arg) must be of type X|Y|Z|int, stdClass given, called in %s on line …

Completed in 34 milliseconds

12345678910>>...41