/php-src/ext/reflection/tests/ |
H A D | bug38465.phpt | 23 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 D | ReflectionMethod_invokeArgs_error3.phpt | 47 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 D | bug33389.phpt | 41 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 D | bug77772.phpt | 8 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 D | anonymous_class_access.phpt | 23 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 D | indirect_call_array_005.phpt | 2 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 D | indirect_call_string_003.phpt | 2 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 D | bug54910.phpt | 6 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 D | closure_compare.phpt | 33 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 D | bug62441.phpt | 7 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 D | bug69124.phpt | 11 function test(&$instance, &$method) { 12 $instance->{$method}(); 16 $method = "bar"; 18 test($instance, $method);
|
/php-src/scripts/dev/ |
H A D | search_underscores.php | 55 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 D | class_order_autoload_error6.phpt | 9 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 D | DateTime_clone_basic4.phpt | 2 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 D | breakiter_factories_basic.phpt | 15 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 D | issue78621_method.phpt | 16 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 D | openssl_seal_basic.phpt | 12 $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 D | php_http_parser.c | 347 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 D | phpdbg_cmd.c | 164 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 D | contravariant_nullable_return_fails.phpt | 7 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 D | invariant_param_and_return_succeeds.phpt | 7 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 D | covariant_nullable_param_fails.phpt | 7 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 D | closure_from_callable_error.phpt | 8 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 D | mixed_type.phpt | 15 $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 D | ReflectionParameter_getDefaultValueConstantName_Internal.phpt | 6 $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) {
|