]> granicus.if.org Git - php/commitdiff
fix tests
authorZoe Slattery <zoe@php.net>
Mon, 16 Feb 2009 20:03:47 +0000 (20:03 +0000)
committerZoe Slattery <zoe@php.net>
Mon, 16 Feb 2009 20:03:47 +0000 (20:03 +0000)
ext/standard/tests/file/file_put_contents_variation5.phpt

index bc6bf6afbd2e90766972faaf31540e5921c8a57c..8d50a19c7f472c84cf9f38d49cacea7e3457ea68 100644 (file)
@@ -5,7 +5,8 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
 --FILE--
 <?php
 
-$thisTestDir = basename(__FILE__, ".php") . ".dir";
+
+$thisTestDir = dirname(__FILE__) . '/' .basename(__FILE__, ".php") . ".directory";
 mkdir($thisTestDir);
 chdir($thisTestDir);
 
@@ -23,7 +24,7 @@ runtest();
 set_include_path(";;  ; ;c:\\rubbish");
 runtest();
 
-chdir(dirname(__FILE__));
+chdir(dirname('__FILE__'));
 rmdir($thisTestDir);