mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +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)
|