Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/05-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ A *closure* is an object that encapsulates a function with a given argument
list and return type. The function can then be called through that object by
using the [function-call operator](10-expressions.md#function-call-operator).

Note: The library functions [`class_meth`](http://www.php.net/class_meth), [`fun1](http://www.php.net/fun), [`inst_meth`](http://www.php.net/inst_meth), and [`meth_caller`](http://www.php.net/meth_caller) allow a string constant containing the name of
Note: The library functions [`class_meth`](http://www.php.net/class_meth), [`fun1`](http://www.php.net/fun), [`inst_meth`](http://www.php.net/inst_meth), and [`meth_caller`](http://www.php.net/meth_caller) allow a string constant containing the name of
a function to be turned into a closure.

**Examples**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function main(): void {

echo "\n=== int 0x80000000 ===\n";

$v = 0x8000000000000000; var_dump($v++); var_dump($v--);
$v = 0x8000000000000000; var_dump($v--); var_dump($v++);

echo "\n=== float 12.345 ===\n";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ int(9223372036854775807)
int(-9223372036854775808)

=== int 0x80000000 ===
int(9223372036854775807)
int(-9223372036854775808)
int(9223372036854775807)

=== float 12.345 ===
float(12.345)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function main(): void {

echo "\n=== int 0x80000000 ===\n";

$v = 0x8000000000000000; var_dump(++$v); var_dump(--$v);
$v = 0x8000000000000000; var_dump(--$v); var_dump(++$v);

echo "\n=== float 12.345 ===\n";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ int(-9223372036854775808)
int(9223372036854775807)

=== int 0x80000000 ===
int(-9223372036854775808)
int(9223372036854775807)
int(-9223372036854775808)

=== float 12.345 ===
float(13.345)
Expand Down