Home
last modified time | relevance | path

Searched refs:method (Results 51 – 75 of 847) sorted by relevance

12345678910>>...34

/PHP-7.3/Zend/tests/nullable_types/
H A Dinvariant_param_and_return_succeeds.phpt7 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 Dcovariant_nullable_param_fails.phpt7 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 Dbreakiter_factories_basic.phpt17 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 Dclosure_from_callable_error.phpt8 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 Dclosure_from_callable_rebinding.phpt7 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 Dreflection.phpt25 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 Dbug77772.phpt8 public function method() {}
12 foreach ($rc->getMethods(null) as $method) {
13 var_dump($method->getName());
21 string(6) "method"
H A Dbug75186.phpt7 foreach ($rc->getMethods() as $method) {
8 if ($method->name == '__invoke') {
9 var_dump($method);
10 $method->invoke(
H A DReflectionParameter_001.phpt2 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 Dbug75231.phpt12 public function method()
14 return 'method';
20 print_r((new ReflectionMethod(B::class, 'method'))->invoke(new A()).PHP_EOL);
24 method
H A DReflectionMethod_basic1.phpt6 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 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()"
/PHP-7.3/Zend/tests/
H A Dbug46246.phpt2 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 Dbug47801.phpt2 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 Dbug71622.phpt18 $method = "foobar";
19 getMethodName($method);
20 var_dump(is_callable("self::$method"));
21 self::$method();
H A Dbug46381.phpt7 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 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()
/PHP-7.3/ext/openssl/tests/
H A Dopenssl_decrypt_ccm.phpt15 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 Dopenssl_encrypt_error.phpt8 $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 Dopenssl_encrypt_ccm.phpt15 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 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()));
27 var_dump(openssl_encrypt($data, $method, $password, 0, $iv, $wrong));
/PHP-7.3/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.3/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.3/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()

Completed in 48 milliseconds

12345678910>>...34