Skip to content

Commit

Permalink
openfile destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
xinhaiz committed Oct 23, 2023
1 parent 7c2a22a commit cff7276
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/110.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
Bug (mem leak or crash in Yaf_Config_Ini, PHP 8.1 or later)
Bug (open file not destroy or crash in Yaf_Config_Ini, PHP 8.1 or later)
--SKIPIF--
<?php if (!extension_loaded("yaf")) print "skip"; ?>
--INI--
Expand All @@ -10,7 +10,9 @@ yaf.use_namespace=0
<?php
$file = dirname(__FILE__) . "/simple.ini";

for ($i = 0; $i < 10241; $i++) {
// ulimit -n, default 256
// open files will be 257
for ($i = 0; $i < 257; $i++) {
$a = new Yaf\Config\Ini($file);
unset($a);
}
Expand Down

0 comments on commit cff7276

Please sign in to comment.