php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch req60524.patch for *Directory/Filesystem functions Bug #64396

Patch version 2013-03-08 23:42 UTC

Return to Bug #64396 | Download this patch
Patch Revisions:

Developer: mattficken

--- a/tests/basic/req60524.phpt	Wed Mar 06 09:42:12 2013
+++ b/tests/basic/req60524.phpt	Fri Mar 08 15:36:02 2013
@@ -2,6 +2,12 @@
 Req #60524 (Specify temporary directory)
 --INI--
 sys_temp_dir=/path/to/temp/dir
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip non-windows only test');
+}
+?>
 --FILE--
 <?php echo sys_get_temp_dir(); ?>
 --EXPECT--
+++ b/tests/basic/req60524-win32.phpt	Fri Mar 08 15:36:02 2013
+--TEST--
+Req #60524 (Specify temporary directory)
+--INI--
+sys_temp_dir=C:\Windows
+--SKIPIF--
+<?php
+if( substr(PHP_OS, 0, 3) != "WIN" )
+  die('skip Run only on Windows');
+?>
+--FILE--
+<?php echo sys_get_temp_dir(); ?>
+--EXPECT--
+C:\\Windows
+
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 01:01:33 2024 UTC