mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
218a93b898
This also fixes skipped tests due to different naming "zend-test" instead of "zend_test" and "PDO" instead of "pdo": - ext/dom/tests/libxml_global_state_entity_loader_bypass.phpt - ext/simplexml/tests/libxml_global_state_entity_loader_bypass.phpt - ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt - ext/zend_test/tests/observer_sqlite_create_function.phpt EXTENSIONS section is used for the Windows build to load the non-static extensions. Closes GH-13276
20 lines
341 B
PHP
20 lines
341 B
PHP
--TEST--
|
|
Bug GH-8781 (ZipArchive deletes zip file with no contents)
|
|
--EXTENSIONS--
|
|
zip
|
|
--FILE--
|
|
<?php
|
|
touch($file = __DIR__ . '/bug_gh8781.zip');
|
|
var_dump(is_file($file));
|
|
|
|
$zip = new ZipArchive();
|
|
$zip->open($file, ZipArchive::CREATE | ZipArchive::OVERWRITE);
|
|
$zip->close();
|
|
|
|
var_dump(is_file($file));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(false)
|
|
|