Home
last modified time | relevance | path

Searched refs:method (Results 26 – 50 of 830) sorted by relevance

12345678910>>...34

/PHP-7.4/Zend/tests/
H A Dindirect_call_string_001.phpt2 Indirect call with 'Class::method' syntax with class in namespace
11 echo "Static method called!\n";
16 printf("Static method called with args: %s, %s, %s\n", $arg1, $arg2, $arg3);
23 // Test basic call using Class::method syntax.
42 Static method called!
43 Static method called!
44 Static method called with args: arg1, arg2, arg3
45 Static method called with args: arg1, arg2, arg3
H A Dbug50383.phpt7 public static function __callStatic($method, $args) {
8 throw new Exception("Missing static method '$method'\n");
10 public function __call($method, $args) {
11 throw new Exception("Missing method '$method'\n");
39 Missing static method 'ThrowException'
72 Missing method 'foo'
H A Dmethod_argument_binding.phpt2 Edge cases in compile-time method argument binding
7 private function method($x) {}
13 $this->method($x);
19 public function method(&$x) {
27 private final function method(&$x) {
36 $this->method($x);
H A Dindirect_call_array_005.phpt2 Dynamic static call to instance method should throw.
11 public function method()
18 $callback = ['TestClass', 'method'];
22 Deprecated: Non-static method TestClass::method() should not be called statically in %s on line %d
26 #0 %s(%d): TestClass::method()
H A Dindirect_call_string_003.phpt2 Dynamic static call to instance method should throw.
11 public function method()
18 $callback = 'TestClass::method';
22 Deprecated: Non-static method TestClass::method() should not be called statically in %s on line %d
26 #0 %s(%d): TestClass::method()
H A Dbug54910.phpt6 public function __call($method, $args) {
7 if (stripos($method, 'get') === 0) {
10 die("No such method - '$method'\n");
28 No such method - 'noSuchMethod'
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
/PHP-7.4/ext/reflection/tests/
H A DReflectionMethod_basic3.phpt6 function reflectMethod($class, $method) {
7 $methodInfo = new ReflectionMethod($class, $method);
9 echo "Reflecting on method $class::$method()\n\n";
57 Reflecting on method DerivedClass::foo()
71 Reflecting on method TestClass::stat()
85 Reflecting on method TestClass::priv()
99 Reflecting on method TestClass::prot()
113 Reflecting on method DerivedClass::prot()
127 Reflecting on method TestInterface::int()
141 Reflecting on method ReflectionProperty::__construct()
[all …]
H A DReflectionMethod_basic4.phpt6 function reflectMethod($class, $method) {
7 $methodInfo = new ReflectionMethod($class, $method);
9 echo "Reflecting on method $class::$method()\n\n";
60 Reflecting on method DerivedClass::foo()
74 Reflecting on method TestClass::stat()
88 Reflecting on method TestClass::priv()
102 Reflecting on method TestClass::prot()
116 Reflecting on method DerivedClass::prot()
130 Reflecting on method TestInterface::int()
144 Reflecting on method ReflectionProperty::__construct()
[all …]
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(), '…
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_print.c55 switch (method->type) { in phpdbg_print_function_helper()
64 if (method->common.scope) { in phpdbg_print_function_helper()
68 ZSTR_VAL(method->common.scope->name), in phpdbg_print_function_helper()
77 method->common.function_name ? ZSTR_VAL(method->common.function_name) : "{main}", in phpdbg_print_function_helper()
96 if (method->common.scope) { in phpdbg_print_function_helper()
168 zend_function *method; in PHPDBG_PRINT() local
171 phpdbg_print_function_helper(method); in PHPDBG_PRINT()
183 PHPDBG_PRINT(method) /* {{{ */ in PHPDBG_PRINT() argument
187 if (phpdbg_safe_class_lookup(param->method.class, strlen(param->method.class), &ce) == SUCCESS) { in PHPDBG_PRINT()
323 zend_function *method; in phpdbg_print_opcodes_ce() local
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Darray_map_object3.phpt12 * 1) child class method using parent object
13 * 2) parent class method using child object
14 * 3) child class method using parent class
15 * 4) parent class method using child class
50 echo "-- accessing parent method from child class --\n";
53 echo "-- accessing child method from parent class --\n";
56 echo "-- accessing parent method using child class object --\n";
66 -- accessing parent method from child class --
75 -- accessing child method from parent class --
79 -- accessing parent method using child class object --
[all …]
/PHP-7.4/ext/standard/tests/general_functions/
H A Doutput_add_rewrite_var_basic1.phpt29 <form method="get"> </form>
30 <form action="./foo.php" method="get">
31 <form action="//php.net/bar.php" method="get">
32 <form action="http://php.net/bar.php" method="get">
33 <form action="bad://php.net/bar.php" method="get">
34 <form action="//www.php.net/bar.php" method="get">
49 <form method="get"> </form>
50 <form action="./foo.php" method="get"> </form>
71 <form method="get"> </form>
72 <form action="./foo.php" method="get"> </form>
[all …]
H A Doutput_add_rewrite_var_basic2.phpt29 <form method="get"> </form>
30 <form action="./foo.php" method="get"> </a>
31 <form action="//php.net/bar.php" method="get"> </a>
33 <form action="bad://php.net/bar.php" method="get"> </a>
34 <form action="//www.php.net/bar.php" method="get"> </a>
49 <form method="get"> </form>
50 <form action="./foo.php" method="get"> </a>
51 <form action="//php.net/bar.php" method="get"> </a>
71 <form method="get"> </form>
72 <form action="./foo.php" method="get"> </a>
[all …]
/PHP-7.4/Zend/tests/closures/
H A Dclosure_from_callable_non_static_statically.phpt2 Testing Closure::fromCallable() functionality: Getting non-static method statically
7 public function method() {
12 $fn = Closure::fromCallable(['A', 'method']);
20 Failed to create closure from callable: non-static method A::method() should not be called statical…
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_reflection.phpt38 Inspecting method '__construct'
260 Inspecting method 'close'
276 Inspecting method 'commit'
306 Inspecting method 'connect'
364 Inspecting method 'debug'
506 Inspecting method 'init'
522 Inspecting method 'kill'
630 Inspecting method 'ping'
646 Inspecting method 'poll'
720 Inspecting method 'query'
[all …]
/PHP-7.4/ext/spl/tests/
H A Dspl_autoload_007.phpt60 Function 'MyAutoLoader::notExist' not found (class 'MyAutoLoader' does not have a method 'notExist')
63 Function 'MyAutoLoader::noAccess' not callable (cannot access protected method MyAutoLoader::noAcce…
69 Function 'MyAutoLoader::dynaLoad' not callable (non-static method MyAutoLoader::dynaLoad() should n…
77 Passed array does not specify an existing static method (class 'MyAutoLoader' does not have a metho…
85 Passed array does not specify a callable static method (cannot access protected method MyAutoLoader…
101 Passed array specifies a non static method but no object (non-static method MyAutoLoader::dynaLoad(…
110 Passed array does not specify an existing method (class 'MyAutoLoader' does not have a method 'notE…
119 Passed array does not specify a callable static method (cannot access protected method MyAutoLoader…
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_decrypt_basic.phpt8 $method = "AES-128-CBC";
11 $ivlen = openssl_cipher_iv_length($method);
16 $encrypted = openssl_encrypt($data, $method, $password, 0, $iv);
17 $output = openssl_decrypt($encrypted, $method, $password, 0, $iv);
19 $encrypted = openssl_encrypt($data, $method, $password, OPENSSL_RAW_DATA, $iv);
20 $output = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA, $iv);
24 $encrypted = openssl_encrypt($padded_data, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDIN…
25 $output = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $i…
34 openssl_encrypt($data, $method, $password, 0, $iv, $tag);
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error4.phpt9 public function method(): X {}
14 public function method(): Y {}
19 public function method(): B {}
24 public function method(): A {}
39 Fatal error: Declaration of Y::method(): A must be compatible with X::method(): B in %s on line %d
H A Dclass_order_autoload_error5.phpt9 public function method(): X {}
14 public function method(): Y {}
19 public function method(Y $a) {}
24 public function method(Z $a) {}
29 public function method($a) {}
44 Warning: Declaration of Y::method(Z $a) should be compatible with X::method(Y $a) in %s on line %d
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-7.4/ext/date/tests/
H A DDateTimeZone_clone_basic4.phpt2 Test clone of DateTimeZone derived objects with __clone magic method
10 echo "-- DateTimeExt1 __clone magic method called --\n";
14 echo "*** Testing clone of objects derived from DateTimeZone class with __clone magic method***\n";
19 //verify clone by calling method on new object
25 *** Testing clone of objects derived from DateTimeZone class with __clone magic method***
26 -- DateTimeExt1 __clone magic method called --
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
28 *** Testing clone of objects derived from DateTime class with __clone magic method***
29 -- DateTimeExt1 __clone magic method called --
/PHP-7.4/ext/xmlrpc/tests/
H A Dbug47818.phpt10 private $method;
13 $this->method = $method_name;
14 print "Inside impl(): {$this->method}\n";
27 function getMethod() {return $this->method;}
34 $method = $x->getMethod();
36 print "Global scope: $method\n";
/PHP-7.4/scripts/dev/
H A Dsearch_underscores.php57 foreach(get_class_methods($c) as $method) {
59 if (strpos(substr($method, substr($method, 0, 2) != "__" ? 0 : 2), "_") !== false) {
61 $extensions[$ext][$c][] = $method;
89 foreach($methods as $method) {
90 echo " Method: $method\n";

Completed in 103 milliseconds

12345678910>>...34