Home
last modified time | relevance | path

Searched refs:return (Results 151 – 175 of 3006) sorted by relevance

12345678910>>...121

/PHP-8.2/ext/standard/tests/streams/
H A Dbug60455_02.phpt9 return true;
13 return "a\n";
15 return "";
18 return $this->s >= 2;
H A Dbug60455_04.phpt10 return true;
14 return "a\n";
16 return "";
19 return $this->s >= 2;
/PHP-8.2/ext/reflection/tests/types/
H A DReflectionType_001.phpt10 function bar(self $x): int { return 1; }
12 function factory(): self { return new c; }
56 echo "\n*** return types\n";
180 *** return types
181 ** Function/method return type 0
183 ** Function/method return type 1
188 ** Function/method return type 2
193 ** Function/method return type 3
198 ** Function/method return type 4
203 ** Function/method return type 5
[all …]
/PHP-8.2/ext/opcache/tests/
H A Dbug73789.phpt21 return $type;
23 return self::T_STRING;
25 return self::T_DOT;
28 return $type;
/PHP-8.2/Zend/tests/fibers/
H A Dget-return-in-unfinished-fiber.phpt16 …al error: Uncaught FiberError: Cannot get fiber return value: The fiber has not returned in %sget-
18 #0 %sget-return-in-unfinished-fiber.php(%d): Fiber->getReturn()
20 thrown in %sget-return-in-unfinished-fiber.php on line %d
H A Dget-return-after-bailout.phpt25 Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) %sget-return-a…
27 …rror: Uncaught FiberError: Cannot get fiber return value: The fiber exited with a fatal error in %…
29 #0 %sget-return-after-bailout.php(%d): Fiber->getReturn()
32 thrown in %sget-return-after-bailout.php on line %d
/PHP-8.2/ext/opcache/tests/jit/
H A Dclosure_001.phpt18 return function () {
19 return function () {
20 return function () {
21 return 42;
H A Dshift_right_002.phpt14 return $a >> 0;
17 return $a >> 1;
20 return $a >> 2;
23 return $a >> 64;
26 return $a >> -1;
/PHP-8.2/ext/standard/tests/array/
H A Darray_uintersect_uassoc_basic.phpt2 array_uintersect_uassoc(): Test return type and value for expected input
14 if ($a->priv_member === $b->priv_member) return 0;
15 return ($a->priv_member > $b->priv_member) ? 1 : -1;
18 if ($a === $b) return 0;
19 return ($a > $b) ? 1 : -1;
/PHP-8.2/Zend/tests/varSyntax/
H A DindirectFcall.phpt6 function id($x = 'id') { return $x; }
18 $id = function($x) { return $x; };
22 (function($x) { return $x; })('id')('var_dump')(8);
25 return $x ?: $f;
29 public static function id($x = [__CLASS__, 'id']) { return $x; }
/PHP-8.2/Zend/tests/
H A Dbug38779.phpt13 return true;
18 return $ret;
21 return $this->position >= strlen($this->data);
24 return array('size' => strlen($this->data));
27 return false;
H A Dbug65372.phpt2 Bug #65372 (Segfault in gc_zval_possible_root when return reference fails)
13 return self::$_OBJECTS[1];
28 return ChildClass::Get();
33 return parent::Get();
/PHP-8.2/ext/soap/tests/interop/Round4/GroupI/
H A Dr4_groupI_xsd_012w.phpt20 …:echoStringMultiOccursResponse><ns1:return>arg1</ns1:return><ns1:return>arg2</ns1:return><ns1:retu…
/PHP-8.2/ext/standard/tests/file/
H A Duserstreams_005.phpt9 return true;
12 return false;
18 return true;
24 return "kkk";
47 test("stream_truncate bad return", $fd3, 0);
65 ------ stream_truncate bad return: -------
68 Warning: ftruncate(): test_wrapper_bad::stream_truncate did not return a boolean! in %s on line %d
/PHP-8.2/ext/session/tests/
H A Dgh12504.phpt12 return true;
16 return true;
20 return 0;
24 return true;
29 return 'before|i:1234;test|O:4:"Test":0:{}after|i:5678;';
35 return true;
50 return true;
H A Dsession_set_save_handler_sid_002.phpt26 return true;
30 return true;
34 return @file_get_contents($this->path . $id);
38 return file_put_contents($this->path . $id, $data);
43 return false;
52 return true;
57 return false;
H A Dsession_set_save_handler_type_error.phpt13 $validCallback = function () { return true; };
14 $deprecatedCallback = function () { return 0; };
15 $exceptionCallback = function () { return []; };
51 Session callback must have a return value of type bool, array returned
53 Deprecated: session_start(): Session callback must have a return value of type bool, int returned i…
56 Session callback must have a return value of type bool, array returned
58 Deprecated: session_start(): Session callback must have a return value of type bool, int returned i…
H A Dsession_set_save_handler_iface_002.phpt34 return true;
38 return true;
42 return (string)@file_get_contents($this->path . $id);
47 return false;
52 return true;
62 return true;
69 return file_put_contents($handler->path . $id, $data);
92 Deprecated: PHP Request Shutdown: Session callback must have a return value of type bool, int retur…
/PHP-8.2/Zend/tests/return_types/
H A Dgenerators004.phpt2 Generator with return type does not fail with empty return
8 return;
/PHP-8.2/Zend/tests/try/
H A Dbug70228.phpt2 Bug #70228 (memleak if return in finally block)
7 try { return str_repeat("a", 2); }
8 finally { return str_repeat("b", 2); }
H A Dbug70228_6.phpt2 Bug #70228 (memleak if return in finally block)
8 return str_repeat("a", 2);
10 return 42;
/PHP-8.2/Zend/tests/generators/
H A Dyield_in_finally_cleanup.phpt2 Free pending exceptions / return values on clone on yield in finally
15 return "foo" . $bar;
26 return "foo" . $bar;
36 return "foo" . $bar;
/PHP-8.2/ext/phar/phar/
H A Dphar.inc25 return false;
30 return false;
39 return false;
56 return false;
/PHP-8.2/ext/pcre/tests/
H A Dbug73392.phpt7 return "d";
12 return "ok";
16 return "b";
20 …"/a/" => 'b', "/b/" => function () { return "c"; }, "/c/" => new Rep, "reporting" => array("Foo", …
/PHP-8.2/sapi/phpdbg/tests/
H A Dphpdbg_get_executable_stream_wrapper.phpt36 return false;
44 return false;
56 return true;
59 public function stream_read(int $count) : string { return \fread($this->stream, $count); }
60 public function stream_close() : bool { return \fclose($this->stream); }
61 public function stream_eof() : bool { return \feof($this->stream); }
62 public function stream_stat() { return \fstat($this->stream); }
63 public function stream_set_option($option, $arg1, $arg2) { return false; }

Completed in 23 milliseconds

12345678910>>...121