Skip to content

Commit 831b036

Browse files
committed
changes test from feedback
1 parent 77603d6 commit 831b036

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/spl/tests/gh14687.phpt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ phar.require_hash=0
99
phar.readonly=0
1010
--FILE--
1111
<?php
12-
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
12+
$fname = __DIR__ . '/gh14687.phar.zip';
1313
$phar = new Phar($fname);
1414
class HasDestructor {
1515
public function __destruct() {
@@ -21,6 +21,11 @@ $s[$phar] = new HasDestructor();
2121
register_shutdown_function(function() {
2222
global $s;
2323
});
24+
?>
25+
--CLEAN--
26+
<?php
27+
@unlink(__DIR__ . '/gh14687.phar.zip');
28+
?>
2429
--EXPECT--
2530
object(SplObjectStorage)#2 (1) {
2631
["storage":"SplObjectStorage":private]=>

0 commit comments

Comments
 (0)