Home
last modified time | relevance | path

Searched refs:function (Results 151 – 175 of 7081) sorted by relevance

12345678910>>...284

/PHP-7.4/ext/standard/tests/general_functions/
H A Dcallbacks_001.phpt6 public static function who() {
9 public static function who2() {
15 public static function who() {
21 public function call($cb) {
25 public function test() {
37 public static function who() {
52 public function who() {
58 function __toString() {
61 public function who() {
64 public function call($cb) {
[all …]
/PHP-7.4/ext/reflection/tests/
H A DReflectionNamedType.phpt6 function testInternalTypes(?Traversable $traversable): ?string {
10 function testUserDefinedTypes(?Test $traversable): ?Test {
14 $function = new ReflectionFunction('testInternalTypes');
15 $type = $function->getParameters()[0]->getType();
16 $return = $function->getReturnType();
23 $function = new ReflectionFunction('testUserDefinedTypes');
24 $type = $function->getParameters()[0]->getType();
25 $return = $function->getReturnType();
/PHP-7.4/ext/soap/tests/
H A Dclassmap004.phpt11 function __construct($a){
14 function __get($name) {
17 function __set($name, $val) {
20 function __unset($name) {
26 function __construct($a){
32 function f(){
38 function __construct($wsdl, $options) {
44 function __doRequest($request, $location, $action, $version, $one_way = 0) {
/PHP-7.4/Zend/tests/
H A Dbug40833.phpt10 function __get($name)
18 function __set($name, $value)
28 function __construct($entity)
34 function clear() {
38 function offsetUnset($offset)
44 function offsetSet($offset, $value)
48 function offsetGet($offset)
53 function offsetExists($offset)
H A Dbug50383.phpt7 public static function __callStatic($method, $args) {
10 public function __call($method, $args) {
15 function thrower() {
18 function thrower2() {
46 [function] => __callStatic
64 [function] => thrower
79 [function] => __call
97 [function] => thrower2
H A Dbug32993.phpt2 Bug #32993 (implemented Iterator function current() don't throw exception)
9 public function rewind() { return reset($this->arr); }
10 public function current() { throw new Exception(); }
11 public function key() { return key($this->arr); }
12 public function next() { return next($this->arr); }
13 public function valid() { return (current($this->arr) !== false); }
H A Ddereference_005.phpt10 public function __construct() {
17 public function offsetSet($offset, $value) {
20 public function offsetExists($offset) {
23 public function offsetUnset($offset) {
26 public function offsetGet($offset) {
31 function x() {
H A Dmethod_argument_binding.phpt7 private function method($x) {}
11 public function test() {
19 public function method(&$x) {
27 private final function method(&$x) {
33 public function __call($name, $args) { }
35 public function test() {
H A Dbug78340.phpt11 function stream_open($path, $mode, $options, $opened_path) {
18 function stream_read($count) {
24 function stream_eof() {
28 function stream_close() {
32 function stream_stat() {
40 function stream_set_option($option, $arg1, $arg2) {
46 lib::$files['lib://test.php']= '<?php /* '.$fill.' */ function test() { echo "Works!\n"; }';
H A Dbug30346.phpt8 public function __construct() { }
9 public function offsetExists( $offset ) { return false; }
10 public function offsetGet( $offset ) { return $offset; }
11 public function offsetSet( $offset, $data ) { }
12 public function offsetUnset( $offset ) { }
/PHP-7.4/Zend/tests/function_arguments/
H A Dargument_count_incorrect_userland.phpt2 Call userland function with incorrect number of arguments
6 function foo($bar) { }
14 function bar($foo, $bar) { }
21 function bat(int $foo, string $bar) { }
38 Too few arguments to function foo(), 0 passed in %s and exactly 1 expected
40 Too few arguments to function bar(), 1 passed in %s and exactly 2 expected
42 Too few arguments to function bat(), 1 passed in %s and exactly 2 expected
44 Too few arguments to function bat(), 1 passed in %s and exactly 2 expected
/PHP-7.4/ext/spl/tests/
H A Dregexiterator_getpregflags.phpt11 function current (){}
12 function key ( ){}
13 function next ( ){}
14 function rewind ( ){}
15 function valid ( ){}
/PHP-7.4/tests/classes/
H A Darray_access_007.phpt9 function __construct() {
13 function offsetExists($index) {
17 function offsetGet($index) {
21 function offsetSet($index, $value) {
29 function offsetUnset($index) {
33 function dump() {
H A Dctor_visibility.phpt8 function __construct()
16 function __construct()
22 static function f()
32 private function __construct()
37 static function f()
47 function __construct()
53 static function f()
/PHP-7.4/ext/sqlite3/tests/
H A Dstream_test.inc9 public function stream_open($path, $mode, $options, &$opened_path)
15 public function stream_read($count)
22 public function stream_write($data)
27 public function stream_stat()
32 public function stream_tell()
37 public function stream_eof()
/PHP-7.4/Zend/tests/type_declarations/
H A Dscalar_null.phpt7 'int' => function (int $i) { return $i; },
8 'float' => function (float $f) { return $f; },
9 'string' => function (string $s) { return $s; },
10 'bool' => function (bool $b) { return $b; },
11 'int nullable' => function (int $i = NULL) { return $i; },
12 'float nullable' => function (float $f = NULL) { return $f; },
13 'string nullable' => function (string $s = NULL) { return $s; },
14 'bool nullable' => function (bool $b = NULL) { return $b; }
17 foreach ($functions as $type => $function) {
20 var_dump($function(null));
/PHP-7.4/tests/lang/
H A DreturnByReference.003.phpt2 Returning a reference from a function
5 function returnConstantByValue() {
9 function &returnConstantByRef() {
13 function &returnVariableByRef() {
17 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:…
24 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan…
31 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n…
40 ---> 1. Trying to assign by reference the return value of a function that returns by value:
46 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref:
52 ---> 3. Trying to assign by reference the return value of a function that returns by ref:
H A Dengine_assignExecutionOrder_005.phpt6 function i1() {
11 function i2() {
16 function i3() {
21 function i4() {
26 function i5() {
31 function i6() {
H A Dbug21961.phpt9 function __construct()
15 function getdrunk($where)
20 function getName()
30 function __construct($w)
35 function getName()
40 function whosdrunk()
/PHP-7.4/ext/standard/tests/strings/
H A Dhebrevc_basic.phpt2 Test hebrevc() function : basic functionality
13function converts logical Hebrew text to visual text.\nThis function is similar to hebrev() with t…
24 string(239) ".The hebrevc function converts logical Hebrew text to visual text<br />
25 ) This function is similar to hebrev() with the difference that it converts newlines<br />
28 .The function tries to avoid breaking words<br />
36 function<br />
44 ) This function<br />
49 .The function<br />
H A Dstristr_error.phpt2 Test stristr() function : error conditions
11 echo "\n-- Testing stristr() function with no arguments --\n";
15 echo "\n-- Testing stristr() function with no needle --\n";
18 echo "\n-- Testing stristr() function with more than expected no. of arguments --\n";
22 echo "\n-- Testing stristr() function with empty haystack --\n";
25 echo "\n-- Testing stristr() function with empty needle --\n";
33 -- Testing stristr() function with no arguments --
41 -- Testing stristr() function with no needle --
46 -- Testing stristr() function with more than expected no. of arguments --
51 -- Testing stristr() function with empty haystack --
[all …]
/PHP-7.4/ext/session/tests/
H A Dsession_set_save_handler_sid_002.phpt2 Test session_set_save_handler() function: create_sid
14 echo "*** Testing session_set_save_handler() function: create_sid ***\n";
19 public function open($path, $name) {
27 public function close() {
31 public function read($id) {
35 public function write($id, $data) {
39 public function destroy($id) {
43 public function gc($maxlifetime) {
52 public function create_sid() {
75 *** Testing session_set_save_handler() function: create_sid ***
/PHP-7.4/ext/standard/tests/array/
H A Darray_map_variation15.phpt2 Test array_map() function : usage variations - non existent 'callback' function
11 * Test array_map() by passing non existent function for $callback argument
14 echo "*** Testing array_map() : non existent 'callback' function ***\n";
26 *** Testing array_map() : non existent 'callback' function ***
28 …map() expects parameter 1 to be a valid callback, function 'non_existent' not found or invalid fun…
/PHP-7.4/Zend/tests/return_types/
H A Dvoid_disallowed2.phpt6 function foo(): void {
7 return -1; // not permitted in a void function
10 // Note the lack of function call: function validated at compile-time
12 Fatal error: A void function must not return a value in %s on line %d
/PHP-7.4/ext/date/tests/
H A Dgmdate_variation7.phpt2 Test gmdate() function : usage variation - Passing Year format options to format argument.
18 echo "\n-- Testing gmdate() function with checking non leap year using Leap Year format --\n";
21 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n";
25 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n";
29 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n";
33 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n";
42 -- Testing gmdate() function with checking non leap year using Leap Year format --
45 -- Testing gmdate() function with checking leap year using Leap Year format --
49 -- Testing gmdate() function with ISO-8601 year number format --
53 -- Testing gmdate() function with full numeric representation of year format --
[all …]

Completed in 27 milliseconds

12345678910>>...284