Home
last modified time | relevance | path

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

12345678910>>...292

/PHP-7.0/Zend/tests/use_function/
H A Dconflicting_use_const_alias.phpt2 use const and use function with the same alias
8 function foo() {
9 return 'foo.function';
15 use function foo as bar;
23 string(12) "foo.function"
/PHP-7.0/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 …]
H A Dgmdate_variation8.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 …]
H A Dgmdate_variation12.phpt2 Test gmdate() function : usage variation - Valid and invalid range of timestamp.
17 echo "\n-- Testing gmdate() function with minimum range of timestamp --\n";
21 echo "\n-- Testing gmdate() function with less than the range of timestamp --\n";
24 echo "\n-- Testing gmdate() function with maximum range of timestamp --\n";
28 echo "\n-- Testing gmdate() function with greater than the range of timestamp --\n";
37 -- Testing gmdate\(\) function with minimum range of timestamp --
40 -- Testing gmdate\(\) function with less than the range of timestamp --
43 -- Testing gmdate\(\) function with maximum range of timestamp --
46 -- Testing gmdate\(\) function with greater than the range of timestamp --
/PHP-7.0/ext/standard/tests/strings/
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.0/ext/openssl/tests/
H A DServerClientTestCase.inc5 function phpt_notify()
10 function phpt_wait()
31 public static function getInstance($isWorker = false)
40 public function __construct($isWorker = false)
49 private function spawnWorkerProcess($code)
64 private function cleanupWorkerProcess()
71 private function stripPhpTagsFromCode($code)
76 public function runWorker()
93 public function run($proc1Code, $proc2Code)
100 public function wait()
[all …]
/PHP-7.0/Zend/tests/type_declarations/
H A Dscalar_none.phpt11 set_error_handler(function (int $errno, string $errmsg, string $file, int $line) use ($errnames) {
17 'int' => function (int $i) { return $i; },
18 'float' => function (float $f) { return $f; },
19 'string' => function (string $s) { return $s; },
20 'bool' => function (bool $b) { return $b; },
21 'int nullable' => function (int $i = NULL) { return $i; },
22 'float nullable' => function (float $f = NULL) { return $f; },
23 'string nullable' => function (string $s = NULL) { return $s; },
24 'bool nullable' => function (bool $b = NULL) { return $b; }
27 foreach ($functions as $type => $function) {
[all …]
H A Dscalar_null.phpt11 set_error_handler(function (int $errno, string $errmsg, string $file, int $line) use ($errnames) {
17 'int' => function (int $i) { return $i; },
18 'float' => function (float $f) { return $f; },
19 'string' => function (string $s) { return $s; },
20 'bool' => function (bool $b) { return $b; },
21 'int nullable' => function (int $i = NULL) { return $i; },
22 'float nullable' => function (float $f = NULL) { return $f; },
23 'string nullable' => function (string $s = NULL) { return $s; },
24 'bool nullable' => function (bool $b = NULL) { return $b; }
27 foreach ($functions as $type => $function) {
[all …]
/PHP-7.0/ext/spl/tests/
H A Dregexiterator_setpregflags.phpt11 function current (){}
12 function key ( ){}
13 function next ( ){}
14 function rewind ( ){}
15 function valid ( ){}
H A Dregexiterator_getpregflags.phpt11 function current (){}
12 function key ( ){}
13 function next ( ){}
14 function rewind ( ){}
15 function valid ( ){}
H A Diterator_041.phpt11 static function fail($state, $method)
19 function __construct()
27 function rewind()
33 function valid()
39 function current()
45 function key()
51 function next()
57 function __destruct()
62 static function test($func, $skip = null)
/PHP-7.0/ext/standard/tests/general_functions/
H A Dgetrusage_error.phpt2 Test getrusage() function : error conditions - incorrect number of args
19 echo "\n-- Testing getrusage() function with more than expected no. of arguments --\n";
27 echo "\n-- Testing getrusage() function with invalid argument - ARRAY--\n";
31 echo "\n-- Testing getrusage() function with invalid argument - OBJECT --\n";
34 function __toString() {
41 echo "\n-- Testing getrusage() function with invalid argument - RESOURCE --\n";
51 -- Testing getrusage() function with more than expected no. of arguments --
55 -- Testing getrusage() function with invalid argument - non-numeric STRING--
59 -- Testing getrusage() function with invalid argument - ARRAY--
63 -- Testing getrusage() function with invalid argument - OBJECT --
[all …]
/PHP-7.0/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…
H A Darray_filter_variation5.phpt2 Test array_filter() function : usage variations - 'input' argument with different false entries
11 * With default callback function argument, array_filter() removes elements which are interpreted as…
15 // callback function always_true
16 function always_true($input)
21 // callback function always_false
22 function always_false($input)
57 // With default callback function
60 // With callback function which returns always true
63 // With callback function which returns always false
/PHP-7.0/ext/session/tests/
H A Dbug60634_error_4.phpt14 function open($save_path, $session_name) {
18 function close() {
23 function read($id) {
27 function write($id, $session_data) {
32 function destroy($id) {
36 function gc($maxlifetime) {
49 #0 [internal function]: write('%s', '')
/PHP-7.0/tests/classes/
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()
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 Darray_access_009.phpt10 function proxyGet($element);
12 function proxyUnset($element, $index);
31 function offsetExists($index) {
36 function offsetGet($index) {
47 function offsetUnset($index) {
57 function __construct()
62 function offsetExists($index)
67 function offsetGet($index)
72 function offsetSet($index, $value)
77 function offsetUnset($index)
[all …]
/PHP-7.0/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.0/Zend/tests/
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 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 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 ) { }
H A Dbug73338.phpt2 Bug #73338: Ensure exceptions in function init opcodes are cleaned properly
6 try { call_user_func(new class { function __destruct () { throw new Error; } }); } catch (Error $e)…
8 set_error_handler(function() { throw new Error; });
12 try { (function() { call_user_func("fail"); })(); } catch (Error $e) {}
14 try { [new class { static function foo() {} function __destruct () { throw new Error; } }, "foo"]()…
/PHP-7.0/tests/lang/
H A Dbug24926.phpt2 Bug #24926 (lambda function (create_function()) cannot be stored in a class property)
12 function __construct()
14 $function = create_function('', 'return "FOO\n";');
15 print($function());
17 $this->functions['test'] = $function;
H A Dengine_assignExecutionOrder_005.phpt6 function i1() {
11 function i2() {
16 function i3() {
21 function i4() {
26 function i5() {
31 function i6() {

Completed in 35 milliseconds

12345678910>>...292