From 4460280960081d8b037719f671a7fcea8be091fb Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 21 Oct 2010 18:47:44 +0100 Subject: [PATCH] php: Create test file properly before running test. --- php/extension/guestfs_php_003.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/extension/guestfs_php_003.phpt b/php/extension/guestfs_php_003.phpt index c4eb5b0..c7c155c 100644 --- a/php/extension/guestfs_php_003.phpt +++ b/php/extension/guestfs_php_003.phpt @@ -13,7 +13,7 @@ if ($g == false) { $tmp = dirname(__FILE__)."/test.img"; $size = 100 * 1024 * 1024; -if (! $fp = fopen ($tmp, 'r+')) { +if (! $fp = fopen ($tmp, 'w+')) { die ("Error: cannot create file '".$tmp."'\n"); } ftruncate ($fp, $size); -- 1.8.3.1