Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 854) sorted by relevance

12345678910>>...35

/PHP-7.2/Zend/tests/
H A Dbug55247.phpt16 $method = 'method';
20 $test->method();
21 $test->$method();
24 Test::method();
25 Test::$method();
28 method
29 method
30 method
31 method
32 method
[all …]
H A Dindirect_call_string_002.phpt2 Indirect call with empty class and/or method name.
7 public static function __callStatic($method, array $args)
9 var_dump($method);
17 // Test call using Class::method syntax.
22 $callback = ['', 'method'];
29 // Test Class::method syntax with empty class name
30 $callback = '::method';
37 // Test array syntax with empty class and method name
45 // Test Class::method syntax with empty class and method name
62 $callback = ':method';
[all …]
H A Dbug68475.phpt2 Bug #68475 Calling function using $callable() syntax with strings of form 'Class::method'
9 echo "Static method called!\n";
14 printf("Static method called with args: %s, %s, %s\n", $arg1, $arg2, $arg3);
18 // Test basic call using Class::method syntax.
35 // Reference undefined method.
52 Static method called!
53 Static method called!
54 Static method called with args: arg1, arg2, arg3
55 Static method called with args: arg1, arg2, arg3
56 Call to undefined method TestClass::undefinedMethod()
H A Dbug19859.phpt7 function __call($method,$args)
9 print "test::__call invoked for method '$method'\n";
18 test::__call invoked for method 'fake'
19 test::__call invoked for method 'fake'
20 test::__call invoked for method 'fake'
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
/PHP-7.2/ext/reflection/tests/
H A DReflectionClass_toString_001.phpt57 Method [ <internal:Reflection> public method getName ] {
63 Method [ <internal:Reflection> public method isInternal ] {
75 Method [ <internal:Reflection> public method isAnonymous ] {
87 Method [ <internal:Reflection> public method isCloneable ] {
93 Method [ <internal:Reflection> public method getFileName ] {
105 Method [ <internal:Reflection> public method getEndLine ] {
123 Method [ <internal:Reflection> public method hasMethod ] {
130 Method [ <internal:Reflection> public method getMethod ] {
137 Method [ <internal:Reflection> public method getMethods ] {
234 Method [ <internal:Reflection> public method isTrait ] {
[all …]
H A DReflectionMethod_getModifiers_basic.phpt10 foreach ($methodArray as $method) {
11 echo "Modifiers for method $method->class::$method->name():\n";
89 Modifiers for method TestClass::foo():
93 Modifiers for method TestClass::stat():
97 Modifiers for method TestClass::priv():
101 Modifiers for method TestClass::prot():
105 Modifiers for method TestClass::fin():
157 Modifiers for method TestClass::foo():
161 Modifiers for method TestClass::stat():
165 Modifiers for method TestClass::priv():
[all …]
H A DReflectionMethod_basic2.phpt6 function reflectMethod($class, $method) {
7 $methodInfo = new ReflectionMethod($class, $method);
9 echo "Reflecting on method $class::$method()\n\n";
54 Reflecting on method DerivedClass::foo()
70 Reflecting on method TestClass::stat()
86 Reflecting on method TestClass::priv()
89 string(%d) "Method [ <user> private method priv ] {
102 Reflecting on method TestClass::prot()
118 Reflecting on method DerivedClass::prot()
134 Reflecting on method TestInterface::int()
[all …]
H A Dclosures_003_v1.phpt8 $method = new ReflectionFunction ($closure);
9 $params = $method->getParameters ();
10 unset ($method);
11 $method = $params[0]->getDeclaringFunction ();
13 echo $method->getName ()."\n";
16 $method = $parameter->getDeclaringFunction ();
18 echo $method->getName ()."\n";
H A Dclosures_003.phpt8 $method = new ReflectionMethod ($closure, '__invoke');
9 $params = $method->getParameters ();
10 unset ($method);
11 $method = $params[0]->getDeclaringFunction ();
13 echo $method->getName ()."\n";
16 $method = $parameter->getDeclaringFunction ();
18 echo $method->getName ()."\n";
H A Dbug60367.phpt21 $method = new ReflectionMethod("b::call");
22 $method->invoke(null);
23 $method->invokeArgs(null, array());
24 $method = new ReflectionMethod("A::call");
25 $method->invoke(null);
26 $method->invokeArgs(null, array());
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 …]
/PHP-7.2/ext/xmlrpc/tests/
H A D002.phpt8 $r = xmlrpc_encode_request("method", array());
9 var_dump(xmlrpc_decode_request($r, $method));
10 var_dump($method);
12 $r = xmlrpc_encode_request("method", 1);
14 var_dump($method);
18 var_dump($method);
22 var_dump($method);
26 var_dump($method);
33 string(6) "method"
38 string(6) "method"
[all …]
/PHP-7.2/ext/oci8/tests/
H A Dreflection2.phpt30 Method [ <internal%s> public method load ] {
36 Method [ <internal%s> public method tell ] {
42 Method [ <internal%s> public method truncate ] {
49 Method [ <internal%s> public method erase ] {
57 Method [ <internal%s> public method flush ] {
83 Method [ <internal%s> public method read ] {
90 Method [ <internal%s> public method eof ] {
96 Method [ <internal%s> public method seek ] {
104 Method [ <internal%s> public method write ] {
119 Method [ <internal%s> public method size ] {
[all …]
/PHP-7.2/scripts/dev/generate-phpt/src/testcase/
H A DgtVariationContainerMethod.php7 protected $method; variable in gtVariationContainerMethod
18 * @param gtMethod $method
20 public function setMethod(gtMethod $method) { argument
21 $this->method = $method;
31 …$numberOfArguments = count($this->method->getMandatoryArgumentNames()) + count($this->method->getO…
38 $testCase->setUp($this->method, $i, $d);
/PHP-7.2/ext/mysqli/tests/
H A Dreflection_tools.inc18 if ($method = $class->getConstructor())
19 inspectMethod($method);
23 foreach ($methods as $method)
24 $tmp[$method->getName()] = $method;
27 foreach ($tmp as $method)
28 inspectMethod($method);
74 function inspectMethod(&$method) {
76 printf("\nInspecting method '%s'\n", $method->getName());
92 if ($params = $method->getParameters()) {
99 inspectParameter($method, $param);
[all …]
/PHP-7.2/Zend/tests/closures/
H A Dclosure_from_callable_basic.phpt20 echo 'Access public instance method of object';
44 echo "Instance return private method as callable";
79 echo 'Access public instance method of parent object through "self::" to parent method';
84 echo 'Access proteced instance method of parent object through "self::" to parent method';
89 echo 'MagicCall __call instance method ';
93 echo 'MagicCall __callStatic static method ';
104 Access public instance method of object OK
110 Instance return private method as callable OK
111 Instance return private static method as callable OK
117 Access public instance method of parent object through "self::" to parent method OK
[all …]
/PHP-7.2/ext/standard/tests/general_functions/
H A Doutput_add_rewrite_var_basic3.phpt28 <form method="get"> </form>
29 <form action="./foo.php" method="get"> </a>
30 <form action="//php.net/bar.php" method="get"> </a>
48 <form method="get"> </form>
49 <form action="./foo.php" method="get"> </a>
50 <form action="//php.net/bar.php" method="get"> </a>
70 <form method="get"> </form>
71 <form action="./foo.php" method="get"> </a>
72 <form action="//php.net/bar.php" method="get"> </a>
87 <form action="//php.net/bar.php" method="get"> </a>
[all …]
H A Doutput_add_rewrite_var_basic4.phpt28 <form method="get"> </form>
29 <form action="./foo.php" method="get"> </a>
30 <form action="//php.net/bar.php" method="get"> </a>
48 <form method="get"> </form>
49 <form action="./foo.php" method="get"> </a>
50 <form action="//php.net/bar.php" method="get"> </a>
70 <form method="get"> </form>
71 <form action="./foo.php" method="get"> </a>
72 <form action="//php.net/bar.php" method="get"> </a>
100 <form method="get"> </form>
[all …]
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 …]
/PHP-7.2/Zend/tests/traits/
H A Dbug64235.phpt2 Bug #64235 (Insteadof not work for class method in 5.4.11)
8 public function method()
10 print_r('Parent method');
17 public function method()
19 print_r('Trait method');
28 TestTrait::method as methodAlias;
29 TestParentClass::method insteadof TestTrait;
H A Dbug64235b.phpt2 Bug #64235 (Insteadof not work for class method in 5.4.11)
8 public function method()
10 print_r('Parent method');
17 public function method()
19 print_r('Trait method');
28 TestTrait::method as methodAlias;
29 TestParentClass::method as TestParent;
/PHP-7.2/scripts/dev/generate-phpt/src/
H A Dgenerate-phpt.php47 $method = new gtMethod($options->getOption('c'), $options->getOption('m')); variable
49 $method->setArgumentNames();
50 $method->setArgumentLists();
51 $method->setInitialisationStatements();
53 $method->setConstructorArgumentNames();
54 $method->setConstructorInitStatements();
55 $method->setConstructorArgumentList();
70 $testCase->setMethod($method);
83 $testCase->setMethod($method);
98 $testCaseContainer->setMethod($method);
/PHP-7.2/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 …]

Completed in 45 milliseconds

12345678910>>...35