/PHP-7.3/Zend/tests/nullable_types/ |
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) { } 14 Fatal error: Declaration of B::method(int $p) must be compatible with A::method(?int $p) in %s on l…
|
/PHP-7.3/ext/intl/tests/ |
H A D | breakiter_factories_basic.phpt | 17 foreach ($m as $method) { 18 echo "===== $method =====\n"; 19 $o1 = IntlBreakIterator::$method('ja'); 20 $o2 = IntlBreakIterator::$method(NULL); 21 $o3 = IntlBreakIterator::$method();
|
/PHP-7.3/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"; 198 Cannot access privateInstance method statically 200 Cannot access privateInstance method 201 SubClass cannot access private instance method 203 Cannot access private static method statically 205 Non-existent method should fail [all …]
|
H A D | closure_from_callable_rebinding.phpt | 7 public function method() { 15 $fn = Closure::fromCallable([new A, 'method']); 20 Warning: Cannot bind method A::method() to object of class B in %s on line %d
|
/PHP-7.3/ext/snmp/tests/ |
H A D | reflection.phpt | 25 Method [ <internal:snmp, ctor> public method __construct ] { 36 Method [ <internal:snmp> public method close ] { 42 Method [ <internal:snmp> public method setSecurity ] { 55 Method [ <internal:snmp> public method get ] { 63 Method [ <internal:snmp> public method getnext ] { 71 Method [ <internal:snmp> public method walk ] { 81 Method [ <internal:snmp> public method set ] { 90 Method [ <internal:snmp> public method getErrno ] { 96 Method [ <internal:snmp> public method getError ] {
|
/PHP-7.3/ext/reflection/tests/ |
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"
|
H A D | bug75186.phpt | 7 foreach ($rc->getMethods() as $method) { 8 if ($method->name == '__invoke') { 9 var_dump($method); 10 $method->invoke(
|
H A D | ReflectionParameter_001.phpt | 2 ReflectionParameter class - getNames() method. 23 $method = new ReflectionMethod('ReflectTestClass', 'twoArgFunction'); 25 $parameters = $method->getParameters(); 33 $method = new ReflectionMethod('ReflectTestClass', 'oneArgNonStatic'); 34 $parameters = $method->getParameters(); 43 $method = new ReflectionMethod('ReflectTestClass', 'noArgs'); 44 $parameters = $method->getParameters();
|
H A D | bug75231.phpt | 12 public function method() 14 return 'method'; 20 print_r((new ReflectionMethod(B::class, 'method'))->invoke(new A()).PHP_EOL); 24 method
|
H A D | ReflectionMethod_basic1.phpt | 6 function reflectMethod($class, $method) { 7 $methodInfo = new ReflectionMethod($class, $method); 9 echo "Reflecting on method $class::$method()\n\n"; 66 Reflecting on method DerivedClass::foo() 95 Reflecting on method TestClass::stat() 124 Reflecting on method TestClass::priv() 153 Reflecting on method TestClass::prot() 182 Reflecting on method DerivedClass::prot() 211 Reflecting on method TestInterface::int() 240 Reflecting on method ReflectionProperty::__construct() [all …]
|
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);
|
H A D | ReflectionMethod_invoke_error1.phpt | 44 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()"
|
/PHP-7.3/Zend/tests/ |
H A D | bug46246.phpt | 2 Bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method()) 12 public function call($method, $args = array()) 15 $this->$method(); 16 call_user_func(array($this, $method));
|
H A D | bug47801.phpt | 2 Bug #47801 (__call() accessed via parent:: operator is provided incorrect method name) 10 echo("magic method called: $name\n"); 30 magic method called: getFoo 31 magic method called: getFoo
|
H A D | bug71622.phpt | 18 $method = "foobar"; 19 getMethodName($method); 20 var_dump(is_callable("self::$method")); 21 self::$method();
|
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 | 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()
|
/PHP-7.3/ext/openssl/tests/ |
H A D | openssl_decrypt_ccm.phpt | 15 foreach ($methods as $method) { 16 $tests = openssl_get_cipher_tests($method); 18 echo "$method - TEST $idx\n"; 19 $pt = openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA, 26 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA, 29 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,
|
H A D | openssl_encrypt_error.phpt | 8 $method = "AES-128-CBC"; 10 $iv = str_repeat("\0", openssl_cipher_iv_length($method)); 17 var_dump(openssl_encrypt($object, $method, $password)); 19 var_dump(openssl_encrypt($data, $method, $object)); 20 var_dump(openssl_encrypt($arr, $method, $object)); 22 var_dump(openssl_encrypt($data, $method, $arr)); 25 var_dump(openssl_encrypt($data, $method, $password, 0, $iv, $wrong)); 28 var_dump(openssl_encrypt($data, $method, $password, OPENSSL_DONT_ZERO_PAD_KEY, $iv)); 55 Warning: openssl_encrypt(): Key length cannot be set for the cipher method in %s on line %d
|
H A D | openssl_encrypt_ccm.phpt | 15 foreach ($methods as $method) { 16 $tests = openssl_get_cipher_tests($method); 18 echo "$method - TEST $idx\n"; 19 $ct = openssl_encrypt($test['pt'], $method, $test['key'], OPENSSL_RAW_DATA, 27 var_dump(openssl_encrypt('data', $method, 'password', 0, NULL, $tag, '')); 30 var_dump(openssl_encrypt('data', $method, 'password', 0, str_repeat('x', 10), $tag, '', 14)); 34 var_dump(openssl_encrypt('data', $method, 'password', 0, str_repeat('x', 16), $tag, '', 1024));
|
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)); 22 var_dump(openssl_decrypt(array(), $method, $password)); 24 var_dump(openssl_decrypt($encrypted, $method, array())); 27 var_dump(openssl_encrypt($data, $method, $password, 0, $iv, $wrong));
|
/PHP-7.3/ext/phar/tests/zip/ |
H A D | corrupt_008.phpt | 85 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.3/ext/pdo/tests/ |
H A D | bug_47769.phpt | 14 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.3/ext/calendar/ |
H A D | easter.c | 33 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()
|