Home
last modified time | relevance | path

Searched refs:method (Results 76 – 100 of 830) sorted by relevance

12345678910>>...34

/PHP-7.4/ext/pdo/tests/
H A Dbug_47769.phpt14 echo "this is a protected method.\n";
17 echo "this is a private method.\n";
33 this is a protected method.
34 this is a private method.
37 Fatal error: Uncaught Error: Call to protected method test::isProtected() from context '' in %s:%d
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error1.phpt9 public function method() : C {}
13 public function method() : B {}
25 Fatal error: Declaration of B::method(): B must be compatible with A::method(): C in %s on line %d
H A Dclass_order_error.phpt7 public function method() : B {}
10 public function method() : C {}
19 Fatal error: Could not check compatibility between B::method(): C and A::method(): B, because class…
H A Dclass_order_autoload_error2.phpt10 public function method(B $x) {}
14 public function method(C $x) {}
27 Warning: Declaration of B::method(C $x) should be compatible with A::method(B $x) in %s on line %d
H A Dparent_in_class_success.phpt9 public function method(parent $x) {}
12 public function method(P2 $x) {}
18 public function method($x): parent {}
21 public function method($x): parent {}
/PHP-7.4/ext/calendar/
H A Deaster.c33 zend_long method = CAL_EASTER_DEFAULT; in _cal_easter() local
49 "|ll", &year, &method) == FAILURE) { in _cal_easter()
60 if ((year <= 1582 && method != CAL_EASTER_ALWAYS_GREGORIAN) || in _cal_easter()
61 …(year >= 1583 && year <= 1752 && method != CAL_EASTER_ROMAN && method != CAL_EASTER_ALWAYS_GREGORI… in _cal_easter()
62 method == CAL_EASTER_ALWAYS_JULIAN) { /* JULIAN CALENDAR */ in _cal_easter()
/PHP-7.4/ext/phar/tests/zip/
H A Dcorrupt_008.phpt85 phar error: unsupported compression method (Shrunk) used in this zip in zip-based phar "%scompress_…
86 phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_…
87 phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_…
88 phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_…
89 phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_…
90 phar error: unsupported compression method (Implode) used in this zip in zip-based phar "%scompress…
91 phar error: unsupported compression method (Tokenize) used in this zip in zip-based phar "%scompres…
92 phar error: unsupported compression method (Deflate64) used in this zip in zip-based phar "%scompre…
94 phar error: unsupported compression method (LZMA) used in this zip in zip-based phar "%scompress_un…
97 phar error: unsupported compression method (WavPack) used in this zip in zip-based phar "%scompress…
[all …]
/PHP-7.4/ext/reflection/tests/
H A Dclosures_004.phpt7 $method = new ReflectionFunction ($closure);
9 $closure2 = $method->getClosure ();
21 $method = new ReflectionMethod ($closure, '__invoke');
22 $closure2 = $method->getClosure ($closure);
H A DReflectionMethod_invoke_error1.phpt44 echo "\nPrivate method:\n";
51 echo "\nAbstract method:\n";
67 string(72) "Given object is not an instance of the class this method was declared in"
69 Private method:
70 string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod"
72 Abstract method:
73 string(53) "Trying to invoke abstract method AbstractClass::foo()"
H A DReflectionMethod_invokeArgs_error3.phpt54 echo "\nStatic method:\n";
61 echo "\nPrivate method:\n";
68 echo "\nAbstract method:\n";
92 string(72) "Given object is not an instance of the class this method was declared in"
99 Static method:
113 Private method:
114 string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod"
116 Abstract method:
117 string(53) "Trying to invoke abstract method AbstractClass::foo()"
118 string(53) "Trying to invoke abstract method AbstractClass::foo()"
H A DReflectionClass_hasMethod_basic.phpt11 //Check if C has public method publicFoo
14 //Check if C has protected method protectedFoo
17 //Check if C has private method privateFoo
20 //Check if C has static method staticFoo
23 //C should not have method bar
/PHP-7.4/Zend/tests/
H A Daccess_modifiers_012.phpt9 echo "In __call() for method $name()\n";
19 In __call() for method none()
20 In __call() for method prot()
21 In __call() for method priv()
H A Dbug26802.phpt2 Bug #26802 (Can't call static method using a variable)
16 static $method = 'global_func';
28 $method = 'foo_func';
29 foo::$method();
H A Dobjects_027.phpt2 Testing 'new static;' calling parent method
30 Deprecated: Non-static method foo::test() should not be called statically in %s on line %d
32 Deprecated: Non-static method bar::show() should not be called statically in %s on line %d
38 Deprecated: %son-static method foo::test() should not be called statically in %s on line %d
40 Deprecated: Non-static method bar::show() should not be called statically in %s on line %d
H A Dclosure_061.phpt11 public function method() {}
48 [[new Cls, 'method'], [
166 Cannot rebind scope of closure created from method
169 Cannot rebind scope of closure created from method
172 Cannot rebind scope of closure created from method
174 (new Cls)->method()
178 Unbinding $this of a method is deprecated
189 Cannot bind method Cls::method() to object of class ClsUnrelated
192 Cannot rebind scope of closure created from method
213 Cannot unbind $this of internal method
[all …]
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_decrypt_error.phpt8 $method = "AES-128-CBC";
11 $iv = str_repeat("\0", openssl_cipher_iv_length($method));
13 $encrypted = openssl_encrypt($data, $method, $password);
15 var_dump(openssl_encrypt($data, $method, $password, 0, $iv));
16 var_dump(openssl_decrypt($encrypted, $method, $wrong));
18 var_dump(openssl_decrypt($wrong, $method, $password));
22 var_dump(openssl_decrypt(array(), $method, $password));
24 var_dump(openssl_decrypt($encrypted, $method, array()));
H A Dopenssl_decrypt_ocb.phpt13 $method = 'aes-128-ocb';
14 $tests = openssl_get_cipher_tests($method);
18 $pt = openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
24 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
28 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
32 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
36 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
H A Dopenssl_decrypt_gcm.phpt13 $method = 'aes-128-gcm';
14 $tests = openssl_get_cipher_tests($method);
18 $pt = openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
24 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
27 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
30 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
H A Dopenssl_x509_fingerprint_basic.phpt16 echo "** Testing hash method md5 **\n";
22 echo "** Testing hash method sha1 with resource **\n";
28 echo "** Testing bad hash method **\n";
38 ** Testing hash method md5 **
42 ** Testing hash method sha1 with resource **
48 ** Testing bad hash method **
/PHP-7.4/tests/lang/
H A DpassByReference_007.phpt2 Pass function and method calls by reference and by value.
56 echo "\nPass a static method call that returns a value:\n";
61 echo "Pass a static method call that returns a reference:\n";
68 echo "\nPass a method call that returns a value:\n";
73 echo "Pass a method call that returns a reference:\n";
89 Pass a static method call that returns a value:
94 Pass a static method call that returns a reference:
98 Pass a method call that returns a value:
103 Pass a method call that returns a reference:
/PHP-7.4/Zend/tests/nullable_types/
H A Dcontravariant_nullable_param_succeeds.phpt7 function method(int $p);
11 function method(?int $p) { }
15 $b->method(null);
/PHP-7.4/ext/xmlrpc/tests/
H A Dbug61097.phpt9 $method = 'abc';
10 xmlrpc_server_register_introspection_callback($server, $method);
11 xmlrpc_server_register_method($server, 'abc', $method);
/PHP-7.4/ext/spl/tests/
H A DCallbackFilterIteratorTest.phpt29 'instance method' => function() { return array(new A, 'test'); },
30 'static method' => function() { return array('B', 'test'); },
31 'static method (2)' => function() { return 'B::test'; },
59 = instance method =
74 = static method =
89 = static method (2) =
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_result_reflection.phpt38 Inspecting method '__construct'
54 Inspecting method '__construct'
70 Inspecting method 'close'
86 Inspecting method 'data_seek'
109 Inspecting method 'fetch_all'
132 Inspecting method 'fetch_array'
155 Inspecting method 'fetch_assoc'
171 Inspecting method 'fetch_field'
256 Inspecting method 'fetch_row'
272 Inspecting method 'field_seek'
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Darray_map_object1.phpt12 * 1) simple class with variable and method
14 * 3) class with only one method and no variable
21 echo "-- simple class with public variable and method --\n";
35 echo "\n-- simple class with private variable and method --\n";
45 echo "\n-- simple class with protected variable and method --\n";
78 echo "\n-- class with final method --\n";
127 -- simple class with public variable and method --
138 -- simple class with private variable and method --
144 -- simple class with protected variable and method --
169 -- class with final method --
[all …]

Completed in 45 milliseconds

12345678910>>...34