summaryrefslogtreecommitdiffstats
path: root/php/extension/guestfs_php_001.phpt
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-09-03 12:15:00 +0100
committerRichard Jones <rjones@redhat.com>2010-09-04 13:38:03 +0100
commit2c61e04c4599536fee771431fb1ebc8384523b2a (patch)
tree4d09707b244ba16df45e3ee4a1a8e7d80546ae5f /php/extension/guestfs_php_001.phpt
parent2d8fd7dacd77361bc385be42112289faafb5c60d (diff)
downloadlibguestfs-2c61e04c4599536fee771431fb1ebc8384523b2a.tar.gz
libguestfs-2c61e04c4599536fee771431fb1ebc8384523b2a.tar.xz
libguestfs-2c61e04c4599536fee771431fb1ebc8384523b2a.zip
PHP bindings.
Note that these are not complete on 32 bit architectures. PHP doesn't offer any convenient 64 bit type (on 32 bit). Therefore you should always use these PHP bindings on 64 bit.
Diffstat (limited to 'php/extension/guestfs_php_001.phpt')
-rw-r--r--php/extension/guestfs_php_001.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/php/extension/guestfs_php_001.phpt b/php/extension/guestfs_php_001.phpt
new file mode 100644
index 00000000..771592ff
--- /dev/null
+++ b/php/extension/guestfs_php_001.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Load the module and create a handle.
+--FILE--
+<?php
+
+// See comment in php/run-php-tests.sh.
+//putenv ('LIBGUESTFS_DEBUG=1');
+
+$g = guestfs_create ();
+if ($g == false) {
+ echo ("Failed to create guestfs_php handle.\n");
+ exit;
+}
+echo ("Created guestfs_php handle.\n");
+?>
+--EXPECT--
+Created guestfs_php handle.