We also place the CLEAN sections before EXPECT(F), and remove
extraneous clean-ups.
var_dump(openssl_pkey_get_public($pem));
?>
+--CLEAN--
+<?php
+@rmdir(__DIR__ . '/bug76296_openbasedir');
+?>
--EXPECTF--
Warning: openssl_pkey_get_public(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (%s) in %s on line %d
bool(false)
---CLEAN--
-@rmdir(__DIR__ . '/bug76296_openbasedir');
echo 'done';
?>
--CLEAN--
+<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'bug66960.phar';
unlink($file);
+?>
--EXPECT--
bool(false)
bool(false)
ob_end_flush();
?>
--CLEAN--
+<?php
$initdir = __DIR__;
$sessions = ($initdir."/sessions");
-chdir($initdir);
var_dump(rmdir($sessions));
+?>
--EXPECTF--
*** Testing session_save_path() : variation ***
bool(true)
ob_end_flush();
?>
--CLEAN--
+<?php
$directory = __DIR__;
$sessions = ($directory."/sessions");
var_dump(rmdir($sessions));
+?>
--EXPECTF--
*** Testing session_save_path() : variation ***
bool(true)
echo "Done\n";
?>
---CLEAN--
-/* cleaning resource handles */
-fclose( $file_handle ); //file resource handle deleted
-closedir( $dir_handle ); //dir resource handle deleted
--EXPECTF--
*** Testing end() on different arrays ***
-- Iteration 1 --
fclose($pipes[1]);
fclose($pipes[2]);
?>
+--CLEAN--
+<?php
+$file = preg_replace("~\.clean\.php$~", ".io.php", __FILE__);
+unlink($file);
+?>
--EXPECTF--
string(10000) "%s"
string(10000) "%s"
string(0) ""
string(0) ""
---CLEAN--
-unlink($file);