Home
last modified time | relevance | path

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

12345678910>>...43

/php-src/ext/reflection/tests/
H A Dbug38465.phpt23 foreach ($clazz->getMethods() as $method) {
24 foreach ($method->getParameters() as $param) {
26 …echo $method->getDeclaringClass()->getName(), '::', $method->getName(), '($', $param->getName(), '…
36 foreach ($clazz->getMethods() as $method) {
37 foreach ($method->getParameters() as $param) {
39 …echo $method->getDeclaringClass()->getName(), '::', $method->getName(), '($', $param->getName(), '…
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/new_without_parentheses/
H A Danonymous_class_access.phpt23 public function method() { echo 'method' . PHP_EOL; }
24 }->method();
27 public static function method() { echo 'static method' . PHP_EOL; }
28 }::method();
60 method
61 static 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);
/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/pdo_pgsql/tests/
H A Dissue78621_method.phpt16 public function __call(string $method, array $args)
18 $realMethod = strtr($method, [ 'whatever' => 'disp' ]);
20 … throw new BadMethodCallException('Call to undefined method '.__CLASS__.'::'.$realMethod);
22 echo "$method trampoline for $realMethod\n";
27 function attach($db, $method)
30 $db->setNoticeCallback([ $logger, $method ]);
32 echo "Testing with method explicitely plugged:\n";
40 Testing with method explicitely plugged:
56 Caught BadMethodCallException Call to undefined method Logger::unexisting
/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.c164 dest->method.class = estrdup(src->method.class); in phpdbg_copy_param()
165 dest->method.name = estrdup(src->method.name); in phpdbg_copy_param()
183 dest->method.class = estrdup(src->method.class); in phpdbg_copy_param()
184 dest->method.name = estrdup(src->method.name); in phpdbg_copy_param()
210 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
211 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
235 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
236 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
299 strlen(l->method.class), strlen(r->method.class)}; in phpdbg_match_param()
301 if (memcmp(l->method.class, r->method.class, lengths[0]) == SUCCESS) { in phpdbg_match_param()
[all …]
/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/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 …]
/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) {

Completed in 97 milliseconds

12345678910>>...43