summaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-10-21 18:47:44 +0100
committerRichard W.M. Jones <rjones@redhat.com>2010-10-21 18:47:44 +0100
commit4460280960081d8b037719f671a7fcea8be091fb (patch)
treee5cfa7045d70b45325296cda38b991f4ec852766 /php
parentc97d6c16bd74163d26f7ab9c7f55b842802b23d7 (diff)
downloadlibguestfs-4460280960081d8b037719f671a7fcea8be091fb.tar.gz
libguestfs-4460280960081d8b037719f671a7fcea8be091fb.tar.xz
libguestfs-4460280960081d8b037719f671a7fcea8be091fb.zip
php: Create test file properly before running test.
Diffstat (limited to 'php')
-rw-r--r--php/extension/guestfs_php_003.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/extension/guestfs_php_003.phpt b/php/extension/guestfs_php_003.phpt
index c4eb5b0a..c7c155cb 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);