mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
15 lines
330 B
PHP
15 lines
330 B
PHP
--TEST--
|
|
Bug #68887 (resources are not freed correctly)
|
|
--FILE--
|
|
<?php
|
|
fclose(fopen("php://temp","w+"));
|
|
$count = count(get_resources());
|
|
fclose(fopen("php://temp","w+"));
|
|
var_dump(count(get_resources()) == $count);
|
|
fclose(fopen("php://temp","w+"));
|
|
var_dump(count(get_resources()) == $count);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|