1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/com_dotnet/tests/bug78650.phpt
2021-09-06 17:03:35 +02:00

26 lines
489 B
PHP

--TEST--
Bug #78650 (new COM Crash)
--EXTENSIONS--
com_dotnet
--FILE--
<?php
$fname = __DIR__ . '/bug78650/foo/bar';
mkdir($fname, 0777, true);
$fso = new COM("Scripting.FileSystemObject");
$folder = $fso->GetFolder($fname);
$folder->ParentFolder->Name = 'baz';
print('OK');
?>
--EXPECT--
OK
--CLEAN--
<?php
@rmdir(__DIR__ . '/bug78650/foo/bar');
@rmdir(__DIR__ . '/bug78650/foo');
rmdir(__DIR__ . '/bug78650/baz/bar');
rmdir(__DIR__ . '/bug78650/baz');
rmdir(__DIR__ . '/bug78650');
?>