/PHP-5.5/ext/reflection/tests/ |
H A D | bug38465.phpt | 23 foreach ($clazz->getMethods() as $method) { 24 foreach ($method->getParameters() as $param) { 26 …echo $method->getDeclaringClass()->getName(), '::', $method->getName(), '($', $param->getName(), '… 36 foreach ($clazz->getMethods() as $method) { 37 foreach ($method->getParameters() as $param) { 39 …echo $method->getDeclaringClass()->getName(), '::', $method->getName(), '($', $param->getName(), '…
|
H A D | bug33389.phpt | 43 Method [ <user> public method foo1 ] { 51 Method [ <user> public method foo2 ] { 59 Method [ <user> public method foo3 ] { 67 Method [ <user> public method foo4 ] { 75 Method [ <user> public method foo5 ] { 83 Method [ <user> public method bar ] { 91 Method [ <user> public method foo ] {
|
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 | 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 | ReflectionMethod_invoke_error1.phpt | 44 echo "\nPrivate method:\n"; 51 echo "\nAbstract method:\n"; 65 string(72) "Given object is not an instance of the class this method was declared in" 67 Private method: 68 string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod" 70 Abstract method: 71 string(53) "Trying to invoke abstract method AbstractClass::foo()"
|
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-5.5/Zend/tests/ |
H A D | bug50383.phpt | 7 public static function __callStatic($method, $args) { 8 throw new Exception("Missing static method '$method'\n"); 10 public function __call($method, $args) { 11 throw new Exception("Missing method '$method'\n"); 39 Missing static method 'ThrowException' 85 Missing method 'foo'
|
H A D | bug54910.phpt | 6 public function __call($method, $args) { 7 if (stripos($method, 'get') === 0) { 10 die("No such method - '$method'\n"); 28 No such method - 'noSuchMethod'
|
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 | 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 | 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-5.5/ext/date/tests/ |
H A D | DateTime_clone_basic4.phpt | 2 Test clone of DateTime derived objects with __clone magic method 13 echo "-- DateTimeExt1 __clone magic method called --\n"; 17 echo "*** Testing clone of objects derived from DateTime class with __clone magic method***\n"; 22 //verify clone by calling method on new object 28 *** Testing clone of objects derived from DateTime class with __clone magic method*** 29 -- DateTimeExt1 __clone magic method called --
|
/PHP-5.5/scripts/dev/ |
H A D | search_underscores.php | 57 foreach(get_class_methods($c) as $method) { 59 if (strpos(substr($method, substr($method, 0, 2) != "__" ? 0 : 2), "_") !== false) { 61 $extensions[$ext][$c][] = $method; 89 foreach($methods as $method) { 90 echo " Method: $method\n";
|
/PHP-5.5/ext/pdo/tests/ |
H A D | bug47769.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: Call to protected method test::isProtected() from context '' in %s on line %d
|
/PHP-5.5/ext/phar/tests/zip/ |
H A D | corrupt_008.phpt | 86 phar error: unsupported compression method (Shrunk) 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 (Reduce) used in this zip in zip-based phar "%scompress_… 91 phar error: unsupported compression method (Implode) used in this zip in zip-based phar "%scompress… 92 phar error: unsupported compression method (Tokenize) used in this zip in zip-based phar "%scompres… 93 phar error: unsupported compression method (Deflate64) used in this zip in zip-based phar "%scompre… 95 phar error: unsupported compression method (LZMA) used in this zip in zip-based phar "%scompress_un… 98 phar error: unsupported compression method (WavPack) used in this zip in zip-based phar "%scompress… [all …]
|
/PHP-5.5/ext/calendar/ |
H A D | easter.c | 34 long method = CAL_EASTER_DEFAULT; in _cal_easter() local 50 "|ll", &year, &method) == FAILURE) { in _cal_easter() 61 if ((year <= 1582 && method != CAL_EASTER_ALWAYS_GREGORIAN) || in _cal_easter() 62 …(year >= 1583 && year <= 1752 && method != CAL_EASTER_ROMAN && method != CAL_EASTER_ALWAYS_GREGORI… in _cal_easter() 63 method == CAL_EASTER_ALWAYS_JULIAN) { /* JULIAN CALENDAR */ in _cal_easter()
|
/PHP-5.5/ext/openssl/tests/ |
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()));
|
/PHP-5.5/scripts/dev/generate-phpt/src/texts/ |
H A D | unknownMethod.txt | 2 The method name is not a valid PHP method name. 3 Check that the extension containing the method is loaded.
|
/PHP-5.5/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-5.5/ext/standard/tests/array/ |
H A D | array_map_object1.phpt | 12 * 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 …]
|
/PHP-5.5/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'; }, 59 = instance method = 74 = static method = 89 = static method (2) =
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_class_mysqli_result_reflection.phpt | 43 Inspecting method '__construct' 59 Inspecting method '__construct' 75 Inspecting method 'close' 91 Inspecting method 'data_seek' 114 Inspecting method 'fetch_all' 130 Inspecting method 'fetch_array' 153 Inspecting method 'fetch_assoc' 169 Inspecting method 'fetch_field' 254 Inspecting method 'fetch_row' 270 Inspecting method 'field_seek' [all …]
|
/PHP-5.5/sapi/cli/ |
H A D | php_http_parser.c | 413 parser->method = PHP_HTTP_HEAD; in php_http_parser_execute() 613 parser->method = PHP_HTTP_CHECKOUT; in php_http_parser_execute() 615 parser->method = PHP_HTTP_COPY; in php_http_parser_execute() 619 parser->method = PHP_HTTP_MOVE; in php_http_parser_execute() 621 parser->method = PHP_HTTP_MERGE; in php_http_parser_execute() 623 parser->method = PHP_HTTP_MSEARCH; in php_http_parser_execute() 630 parser->method = PHP_HTTP_PUT; in php_http_parser_execute() 632 parser->method = PHP_HTTP_PATCH; in php_http_parser_execute() 634 parser->method = PHP_HTTP_UNSUBSCRIBE; in php_http_parser_execute() 636 parser->method = PHP_HTTP_PROPPATCH; in php_http_parser_execute() [all …]
|
/PHP-5.5/scripts/dev/generate-phpt/src/testcase/ |
H A D | gtErrorTestCaseMethod.php | 12 private $method; variable in gtErrorTestCaseMethod 17 * @param string $method 19 public function setMethod($method) { argument 20 $this->subject = $method;
|