mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
4625fa181f
As of PHP 7.4.0, the `get_property_ptr_ptr` handler is mandatory; we implement it to always return `NULL`, which is equivalent to not setting the handler in former versions. We add a portable and faster test case than what has been presented in the bug ticket.
28 lines
566 B
PHP
28 lines
566 B
PHP
--TEST--
|
|
Bug #78650 (new COM Crash)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('com_dotnet')) die('skip com_dotnet extension not available');
|
|
?>
|
|
--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/baz/bar');
|
|
rmdir(__DIR__ . '/bug78650/foo/bar');
|
|
rmdir(__DIR__ . '/bug78650/baz');
|
|
rmdir(__DIR__ . '/bug78650/foo');
|
|
rmdir(__DIR__ . '/bug78650');
|
|
?>
|