/php-src/Zend/tests/type_declarations/mixed/inheritance/ |
H A D | mixed_return_inheritance_success3.phpt | 8 public function method(): mixed {} 13 public function method(): bool|int|null {} 18 public function method(): bool|int|float|string|array|object|null {} 23 public function method(): stdClass|Foo {}
|
H A D | mixed_parameter_inheritance_error3.phpt | 8 public function method(mixed $a) {} 13 public function method(bool|int|float|string|array|object|null $a) {} 18 Fatal error: Declaration of Bar::method(object|array|string|int|float|bool|null $a) must be compati…
|
/php-src/Zend/tests/type_declarations/union_types/variance/ |
H A D | invalid_003.phpt | 10 public function method(): Y|string {} 13 public function method(): X|string {} 18 Fatal error: Declaration of B::method(): X|string must be compatible with A::method(): Y|string in …
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | trait_error.phpt | 9 function method($a): A {} 12 function method($r): B {} 20 Fatal error: Could not check compatibility between T::method($r): B and X::method($a): A, because c…
|
H A D | class_order_autoload_error1.phpt | 9 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 D | class_order_error.phpt | 7 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 D | parent_in_class_failure2.phpt | 9 public function method(parent $x) {} 12 public function method(parent $x) {} 17 Fatal error: Declaration of B4::method(A4 $x) must be compatible with A4::method(P4 $x) in %s on li…
|
/php-src/Zend/tests/ |
H A D | bug46381.phpt | 7 public function method() { 12 $test->method(); 17 Fatal error: Uncaught Error: Non-static method ArrayIterator::current() cannot be called statically… 19 #0 %s(%d): test->method()
|
H A D | first_class_callable_005.phpt | 6 public function __call($method, $args) { 7 return $method; 10 public static function __callStatic($method, $args) { 11 return static::class . "::" . $method;
|
H A D | access_modifiers_012.phpt | 9 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 D | closure_061.phpt | 11 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 Cannot unbind $this of method 187 Cannot bind method Cls::method() to object of class ClsUnrelated 190 Cannot rebind scope of closure created from method 211 Cannot unbind $this of method [all …]
|
H A D | bug26802.phpt | 2 Bug #26802 (Can't call static method using a variable) 16 static $method = 'global_func'; 28 $method = 'foo_func'; 29 foo::$method();
|
/php-src/ext/pdo_sqlite/tests/ |
H A D | bug_47769.phpt | 11 echo "this is a protected method.\n"; 14 echo "this is a private method.\n"; 32 this is a protected method. 33 this is a private method. 36 Fatal error: Uncaught Error: Call to protected method TestClass::isProtected() from global scope in…
|
/php-src/ext/zip/tests/ |
H A D | oo_supported.phpt | 18 foreach($methods as $method => $name) { 20 var_dump(ZipArchive::isCompressionMethodSupported($method)); 21 var_dump(ZipArchive::isCompressionMethodSupported($method, false)); 31 foreach($methods as $method => $name) { 33 var_dump(ZipArchive::isEncryptionMethodSupported($method)); 34 var_dump(ZipArchive::isEncryptionMethodSupported($method, false));
|
/php-src/ext/reflection/tests/ |
H A D | closures_004.phpt | 7 $method = new ReflectionFunction ($closure); 9 $closure2 = $method->getClosure (); 21 $method = new ReflectionMethod ($closure, '__invoke'); 22 $closure2 = $method->getClosure ($closure);
|
/php-src/ext/reflection/tests/internal_parameter_default_value/ |
H A D | ReflectionParameter_isDefaultValueAvailable_Internal.phpt | 6 $method = $class->getMethod('setTime'); 8 foreach ($method->getParameters() as $parameter) { 15 $method = $class->getMethod('listIdentifiers'); 17 foreach ($method->getParameters() as $parameter) {
|
/php-src/tests/lang/ |
H A D | passByReference_007.phpt | 2 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-src/ext/openssl/tests/ |
H A D | openssl_decrypt_gcm.phpt | 13 $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 D | openssl_decrypt_error.phpt | 8 $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));
|
H A D | openssl_encrypt_chacha20_poly1305.phpt | 13 $method = 'chacha20-poly1305'; 14 $tests = openssl_get_cipher_tests($method); 18 $ct = openssl_encrypt($test['pt'], $method, $test['key'], OPENSSL_RAW_DATA, 25 var_dump(openssl_encrypt('data', $method, 'password', 0, '', $tag, '')); 28 var_dump(openssl_encrypt('data', $method, 'password', 0, str_repeat('x', 12), $tag, '', 20)); 31 var_dump(openssl_encrypt('data', $method, 'password', 0, str_repeat('x', 12)));
|
/php-src/ext/calendar/ |
H A D | easter.c | 35 zend_long method = CAL_EASTER_DEFAULT; in _cal_easter() local 39 "|l!l", &year, &year_is_null, &method) == FAILURE) { in _cal_easter() 80 if ((year <= 1582 && method != CAL_EASTER_ALWAYS_GREGORIAN) || in _cal_easter() 81 …(year >= 1583 && year <= 1752 && method != CAL_EASTER_ROMAN && method != CAL_EASTER_ALWAYS_GREGORI… in _cal_easter() 82 method == CAL_EASTER_ALWAYS_JULIAN) { /* JULIAN CALENDAR */ in _cal_easter()
|
/php-src/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | invalid6.phpt | 11 function method(): X&Y {} 14 function method(): Y&Z {} 20 Fatal error: Could not check compatibility between Test2::method(): Y&Z and Test::method(): X&Y, be…
|
/php-src/ext/standard/tests/array/ |
H A D | array_map_object1.phpt | 7 * 1) simple class with variable and method 9 * 3) class with only one method and no variable 16 echo "-- simple class with public variable and method --\n"; 34 echo "\n-- simple class with private variable and method --\n"; 44 echo "\n-- simple class with protected variable and method --\n"; 77 echo "\n-- class with final method --\n"; 124 -- simple class with public variable and method -- 133 -- simple class with private variable and method -- 137 -- simple class with protected variable and method -- 156 -- class with final method -- [all …]
|
H A D | array_map_object2.phpt | 2 Test array_map() function : object functionality - with non-existent class and method 10 echo "*** Testing array_map() : with non-existent class and method ***\n"; 30 echo "-- with existent class and non-existent method --\n"; 40 *** Testing array_map() : with non-existent class and method *** 43 -- with existent class and non-existent method -- 44 …callback) must be a valid callback or null, class SimpleClass does not have a method "non-existent"
|
/php-src/ext/spl/tests/ |
H A D | CallbackFilterIteratorTest.phpt | 29 'instance method' => function() { return array(new A, 'test'); }, 30 'static method' => function() { return array('B', 'test'); }, 31 'static method (2)' => function() { return 'B::test'; }, 60 = instance method = 75 = static method = 90 = static method (2) =
|