PHP 8.6.0 Alpha 2 available for testing

Voting

: max(four, nine)?
(Example: nine)

The Note You're Voting On

anoam at yandex dot ru
11 years ago
It works a little bit different with resources in different PHP versions.
For example:
function foo($bar)
{
 return debug_backtrace();
}
$resource = fopen(__FILE__, 'r');
$backtrace = foo($resource);
echo "when resource is opened: " . gettype($backtrace[0]['args'][0]) . "\n";
fclose($resource);
echo "when resource is closed: " . gettype($backtrace[0]['args'][0]) . "\n";
With 5.3.10 I got:
when resource is opened: resource
when resource is closed: resource
With 5.5.9:
when resource is opened: resource
when resource is closed: unknown type
Be carefull.

<< Back to user notes page

AltStyle によって変換されたページ (->オリジナル) /