mirror of
https://github.com/php/php-src.git
synced 2025-01-09 20:44:33 +08:00
15 lines
330 B
Plaintext
15 lines
330 B
Plaintext
|
--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)
|