diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-10-21 18:47:44 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-21 18:47:44 +0100 |
commit | 4460280960081d8b037719f671a7fcea8be091fb (patch) | |
tree | e5cfa7045d70b45325296cda38b991f4ec852766 /php | |
parent | c97d6c16bd74163d26f7ab9c7f55b842802b23d7 (diff) | |
download | libguestfs-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.phpt | 2 |
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); |