summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testuuid.php21
-rw-r--r--uuid-php.txt26
2 files changed, 47 insertions, 0 deletions
diff --git a/testuuid.php b/testuuid.php
new file mode 100644
index 0000000..0b160a3
--- /dev/null
+++ b/testuuid.php
@@ -0,0 +1,21 @@
+<?php
+
+if (function_exists("uuid_export")) {
+ echo "Version: ".uuid_version()."\n";
+ if (uuid_create($uuid)) {
+ die("Can't create\n");
+ }
+ for ($i=0 ; $i<10 ; $i++) {
+ if (!uuid_make($uuid, UUID_MAKE_V4) && !uuid_export($uuid, UUID_FMT_STR, $str)) {
+ echo "$i: $str\n";
+ }
+ }
+ uuid_destroy($uuid);
+} else if (function_exists("uuid_create")) {
+ for ($i=0 ; $i<10 ; $i++) {
+ echo "$i: ".uuid_create()."\n";
+ }
+} else {
+ die ("No UUID extension\n");
+}
+
diff --git a/uuid-php.txt b/uuid-php.txt
index 84b1738..a30161e 100644
--- a/uuid-php.txt
+++ b/uuid-php.txt
@@ -24,22 +24,48 @@ Extension [ <persistent> extension #103 uuid version <no_version> ] {
- Functions {
Function [ <internal:uuid> function uuid_create ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> &$ctx ]
+ }
}
Function [ <internal:uuid> function uuid_destroy ] {
}
Function [ <internal:uuid> function uuid_clone ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $ctx ]
+ Parameter #1 [ <required> &$ctx2 ]
+ }
}
Function [ <internal:uuid> function uuid_load ] {
}
Function [ <internal:uuid> function uuid_make ] {
}
Function [ <internal:uuid> function uuid_isnil ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $ctx ]
+ Parameter #1 [ <required> &$result ]
+ }
}
Function [ <internal:uuid> function uuid_compare ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $ctx ]
+ Parameter #1 [ <required> $ctx2 ]
+ Parameter #2 [ <required> &$result ]
+ }
}
Function [ <internal:uuid> function uuid_import ] {
}
Function [ <internal:uuid> function uuid_export ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $ctx ]
+ Parameter #1 [ <required> $fmt ]
+ Parameter #2 [ <required> &$data ]
+ }
}
Function [ <internal:uuid> function uuid_error ] {
}