/php-src/Zend/tests/ |
H A D | get_defined_vars.phpt | 5 /* Various variables definitions used for testing of the function */ 17 public function func() { 24 function func() { 31 /* Displaying various variable through the array captured by the get_defined_vars function call */ 42 echo "\n*** Checking for output when get_defined_vars called in local function ***\n"; 46 echo "\n*** Checking for output when get_defined_vars called in function of a class ***\n"; 50 function func1(){ 53 function func2(){ 64 *** Displaying various variables through the array captured by the get_defined_vars function call *… 102 *** Checking for output when get_defined_vars called in local function *** [all …]
|
H A D | method_argument_binding.phpt | 7 private function method($x) {} 11 public function test() { 19 public function method(&$x) { 27 private function method(&$x) { 33 public function __call($name, $args) { } 35 public function test() {
|
H A D | closure_064.phpt | 5 function get_closure3($c) { 6 return function () use ($c) { 10 function throws() { 14 $closure1 = function() use ($throws) { $throws(); }; 18 function ($item) use ($closure3) { $closure3(); }, 29 #4 [internal function]: {closure:%s:15}(1)
|
H A D | gc_038.phpt | 7 function test_add() { 18 function test_sub() { 29 function test_mul() { 40 function test_div() { 51 function test_mod() { 62 function test_sl() { 73 function test_sr() { 84 function test_or() { 95 function test_and() { 106 function test_xor() { [all …]
|
H A D | bug40833.phpt | 10 function __get($name) 18 function __set($name, $value) 28 function __construct($entity) 34 function clear() { 38 function offsetUnset($offset): void 44 function offsetSet($offset, $value): void 48 function offsetGet($offset): mixed 53 function offsetExists($offset): bool
|
H A D | bug32993.phpt | 2 Bug #32993 (implemented Iterator function current() don't throw exception) 9 public function rewind(): void { reset($this->arr); } 10 public function current(): mixed { throw new Exception(); } 11 public function key(): mixed { return key($this->arr); } 12 public function next(): void { next($this->arr); } 13 public function valid(): bool { return (current($this->arr) !== false); }
|
H A D | dereference_005.phpt | 10 public function __construct() { 17 public function offsetSet($offset, $value): void { 20 public function offsetExists($offset): bool { 23 public function offsetUnset($offset): void { 26 public function offsetGet($offset): mixed { 31 function x() {
|
/php-src/tests/classes/ |
H A D | array_access_007.phpt | 9 function __construct() { 13 function offsetExists($index): bool { 17 function offsetGet($index): mixed { 21 function offsetSet($index, $value): void { 29 function offsetUnset($index): void { 33 function dump() {
|
H A D | array_access_009.phpt | 10 function proxyGet($element); 11 function proxySet($element, $index, $value); 12 function proxyUnset($element, $index); 31 function offsetExists($index): bool { 36 function offsetGet($index): mixed { 47 function offsetUnset($index): void { 57 function __construct() 62 function offsetExists($index): bool 67 function offsetGet($index): mixed 77 function offsetUnset($index): void [all …]
|
/php-src/ext/spl/tests/ |
H A D | iterator_058.phpt | 9 function current(): mixed {} 10 function next(): void {} 11 function key(): mixed {} 12 function valid(): bool {} 13 function rewind(): void {}
|
H A D | iterator_041.phpt | 11 static function fail($state, $method) 19 function __construct() 27 function rewind(): void 33 function valid(): bool 39 function current(): mixed 45 function key(): string|int|null 51 function next(): void 57 function __destruct() 62 static function test($func, $skip = null)
|
/php-src/ext/standard/tests/class_object/ |
H A D | get_class_methods_basic_002.phpt | 10 private function privC() {} 11 protected function protC() {} 12 public function pubC() {} 14 public static function testFromC() { 25 private function privD() {} 26 protected function protD() {} 27 public function pubD() {} 29 public static function testFromD() { 40 private function privX() {} 41 protected function protX() {} [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOMXPath_callables.phpt | 9 public static function dump(string $var) { 15 public function registerCycle() { 19 public function dummy(string $var) { 32 $xpath->evaluate("//a[php:function('var_dump', string(@href))]"); 40 $xpath->evaluate("//a[php:function('var_dump', string(@href))]"); 41 $xpath->evaluate("//a[php:function('MyClass::dump', string(@href))]"); 52 $xpath->evaluate("//a[php:function('mydump', string(@href))]"); 53 $xpath->evaluate("//a[php:function('xyz', string(@href))]"); 54 $xpath->evaluate("//a[php:function('var_dump', string(@href))]"); 66 $xpath->evaluate("//a[php:function('cycle', string(@href))]"); [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | usort_variation11.phpt | 2 Test usort() function : usage variations - malformed comparison function returning boolean 6 function ucmp($a, $b) { 46 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less … 48 Deprecated: uksort(): Returning bool from comparison function is deprecated, return an integer less… 50 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less… 52 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less … 54 Deprecated: uksort(): Returning bool from comparison function is deprecated, return an integer less… 56 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less… 58 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less … 60 Deprecated: uksort(): Returning bool from comparison function is deprecated, return an integer less… [all …]
|
H A D | array_walk_error2.phpt | 2 Test array_walk() function : error conditions - callback parameters 6 * Testing array_walk() by passing more number of parameters to callback function 10 function callback1($value, $key, $user_data ) { 14 function callback2($value, $key, $user_data1, $user_data2) { 43 echo "-- Testing array_walk() function with too many callback parameters --\n"; 54 Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected 55 Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected 56 Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected 57 Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected 58 -- Testing array_walk() function with too many callback parameters --
|
/php-src/ext/session/tests/user_session_module/ |
H A D | session_set_save_handler_class_010.phpt | 2 Test session_set_save_handler() : manual shutdown function 13 echo "*** Testing session_set_save_handler() : manual shutdown function ***\n"; 17 public function __construct($num) { 21 public function __destruct() { 24 public function finish() { 29 public function write($id, $data): bool { 33 public function close(): bool { 51 *** Testing session_set_save_handler() : manual shutdown function ***
|
H A D | bug60634_error_1.phpt | 15 function open($save_path, $session_name): bool { 19 function close(): bool { 24 function read($id): string|false { 28 function write($id, $session_data): bool { 33 function destroy($id): bool { 37 function gc($maxlifetime): int { 55 Fatal error: Uncaught Error: Call to undefined function undefined_function() in %s:%d 57 #0 [internal function]: MySessionHandler->write('%s', '')
|
H A D | bug60634_error_3.phpt | 14 function open($save_path, $session_name) { 18 function close() { 23 function read($id) { 27 function write($id, $session_data) { 32 function destroy($id): bool { 36 function gc($maxlifetime) { 48 Fatal error: Uncaught Error: Call to undefined function undefined_function() in %s:%d 50 #0 [internal function]: write(%s, '')
|
/php-src/Zend/tests/offsets/ |
H A D | test_offset_helpers.inc | 3 function get_zend_debug_type($v) { 15 function zend_test_var_export($value) { 43 function exportProp(object $o, string $p) { 65 function exportObject(object $o) { 74 function expectf_to_regex(string $wanted): string 100 public function offsetGet($offset): mixed { 105 public function offsetUnset($offset): void { 109 public function offsetExists($offset): bool { 122 public function offsetGet($offset): mixed { 127 public function offsetUnset($offset): void { [all …]
|
/php-src/ext/pcre/tests/ |
H A D | preg_replace_callback_fatal_error_leak.phpt | 6 function test() {} 8 preg_replace_callback('/a/', function($matches) { 9 preg_replace_callback('/x/', function($matches) { 10 function test() {} // Trigger a fatal error. 18 Fatal error: Cannot redeclare function test() (previously declared in %s:%d) in %s on line %d
|
/php-src/tests/lang/ |
H A D | bug27439.phpt | 17 public function __construct() { 21 public function getArray() { 25 public function getString() { 29 public function case1() { 35 public function case2() { 39 public function case3() { 43 public function case4() { 47 public function case5() { 51 public function case6() {
|
H A D | bug21961.phpt | 9 function __construct() 15 function getdrunk($where) 20 function getName() 30 function __construct($w) 35 function getName() 40 function whosdrunk()
|
H A D | engine_assignExecutionOrder_005.phpt | 6 function i1() { 11 function i2() { 16 function i3() { 21 function i4() { 26 function i5() { 31 function i6() {
|
/php-src/ext/sqlite3/tests/ |
H A D | stream_test.inc | 10 public function stream_open($path, $mode, $options, &$opened_path) 16 public function stream_read($count) 23 public function stream_write($data) 28 public function stream_stat() 33 public function stream_tell() 38 public function stream_eof()
|
/php-src/ext/opcache/tests/jit/ |
H A D | assign_dim_002.phpt | 11 function foo() { 17 function foo1() { 23 function foo2() { 29 function foo3() { 45 function index() { 49 function offset() { 53 function foo4() { 61 $array[function() {}] = 2; 72 function foo5() { 83 function false_to_array($a) { [all …]
|