git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c97d6c1
)
php: Create test file properly before running test.
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 21 Oct 2010 17:47:44 +0000
(18:47 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 21 Oct 2010 17:47:44 +0000
(18:47 +0100)
php/extension/guestfs_php_003.phpt
patch
|
blob
|
history
diff --git
a/php/extension/guestfs_php_003.phpt
b/php/extension/guestfs_php_003.phpt
index
c4eb5b0
..
c7c155c
100644
(file)
--- 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);