|
1 | | -Extension [ <persistent> extension #160 uuid version 1.0.4 ] { |
| 1 | +Extension [ <persistent> extension #18 uuid version 1.3.0-dev ] { |
2 | 2 |
|
3 | | - - Constants [10] { |
4 | | - Constant [ integer UUID_VARIANT_DCE ] { 1 } |
5 | | - Constant [ integer UUID_VARIANT_MICROSOFT ] { 2 } |
6 | | - Constant [ integer UUID_VARIANT_OTHER ] { 3 } |
7 | | - Constant [ integer UUID_TYPE_DEFAULT ] { 0 } |
8 | | - Constant [ integer UUID_TYPE_TIME ] { 1 } |
9 | | - Constant [ integer UUID_TYPE_DCE ] { 4 } |
10 | | - Constant [ integer UUID_TYPE_NAME ] { 1 } |
11 | | - Constant [ integer UUID_TYPE_RANDOM ] { 4 } |
12 | | - Constant [ integer UUID_TYPE_NULL ] { -1 } |
13 | | - Constant [ integer UUID_TYPE_INVALID ] { -42 } |
| 3 | + - Constants [17] { |
| 4 | + Constant [ int UUID_VARIANT_NCS ] { 0 } |
| 5 | + Constant [ int UUID_VARIANT_DCE ] { 1 } |
| 6 | + Constant [ int UUID_VARIANT_MICROSOFT ] { 2 } |
| 7 | + Constant [ int UUID_VARIANT_OTHER ] { 3 } |
| 8 | + Constant [ int UUID_TYPE_DEFAULT ] { 0 } |
| 9 | + Constant [ int UUID_TYPE_DCE ] { 4 } |
| 10 | + Constant [ int UUID_TYPE_NAME ] { 1 } |
| 11 | + Constant [ int UUID_TYPE_TIME ] { 1 } |
| 12 | + Constant [ int UUID_TYPE_TIME_V6 ] { 6 } |
| 13 | + Constant [ int UUID_TYPE_TIME_V7 ] { 7 } |
| 14 | + Constant [ int UUID_TYPE_VENDOR ] { 8 } |
| 15 | + Constant [ int UUID_TYPE_SECURITY ] { 2 } |
| 16 | + Constant [ int UUID_TYPE_MD5 ] { 3 } |
| 17 | + Constant [ int UUID_TYPE_RANDOM ] { 4 } |
| 18 | + Constant [ int UUID_TYPE_SHA1 ] { 5 } |
| 19 | + Constant [ int UUID_TYPE_NULL ] { -1 } |
| 20 | + Constant [ int UUID_TYPE_INVALID ] { -42 } |
14 | 21 | } |
15 | 22 |
|
16 | 23 | - Functions { |
17 | 24 | Function [ <internal:uuid> function uuid_create ] { |
18 | 25 |
|
19 | 26 | - Parameters [1] { |
20 | | - Parameter #0 [ <optional> $uuid_type ] |
| 27 | + Parameter #0 [ <optional> int $uuid_type = UUID_TYPE_DEFAULT ] |
21 | 28 | } |
| 29 | + - Return [ string ] |
22 | 30 | } |
23 | 31 | Function [ <internal:uuid> function uuid_is_valid ] { |
24 | 32 |
|
25 | 33 | - Parameters [1] { |
26 | | - Parameter #0 [ <required> $uuid ] |
| 34 | + Parameter #0 [ <required> string $uuid ] |
27 | 35 | } |
| 36 | + - Return [ bool ] |
28 | 37 | } |
29 | 38 | Function [ <internal:uuid> function uuid_compare ] { |
30 | 39 |
|
31 | 40 | - Parameters [2] { |
32 | | - Parameter #0 [ <required> $uuid1 ] |
33 | | - Parameter #1 [ <required> $uuid2 ] |
| 41 | + Parameter #0 [ <required> string $uuid1 ] |
| 42 | + Parameter #1 [ <required> string $uuid2 ] |
34 | 43 | } |
| 44 | + - Return [ int ] |
35 | 45 | } |
36 | 46 | Function [ <internal:uuid> function uuid_is_null ] { |
37 | 47 |
|
38 | 48 | - Parameters [1] { |
39 | | - Parameter #0 [ <required> $uuid ] |
| 49 | + Parameter #0 [ <required> string $uuid ] |
40 | 50 | } |
| 51 | + - Return [ bool ] |
| 52 | + } |
| 53 | + Function [ <internal:uuid> function uuid_generate_md5 ] { |
| 54 | + |
| 55 | + - Parameters [2] { |
| 56 | + Parameter #0 [ <required> string $uuid_ns ] |
| 57 | + Parameter #1 [ <required> string $name ] |
| 58 | + } |
| 59 | + - Return [ string ] |
| 60 | + } |
| 61 | + Function [ <internal:uuid> function uuid_generate_sha1 ] { |
| 62 | + |
| 63 | + - Parameters [2] { |
| 64 | + Parameter #0 [ <required> string $uuid_ns ] |
| 65 | + Parameter #1 [ <required> string $name ] |
| 66 | + } |
| 67 | + - Return [ string ] |
41 | 68 | } |
42 | 69 | Function [ <internal:uuid> function uuid_type ] { |
43 | 70 |
|
44 | 71 | - Parameters [1] { |
45 | | - Parameter #0 [ <required> $uuid ] |
| 72 | + Parameter #0 [ <required> string $uuid ] |
46 | 73 | } |
| 74 | + - Return [ int ] |
47 | 75 | } |
48 | 76 | Function [ <internal:uuid> function uuid_variant ] { |
49 | 77 |
|
50 | 78 | - Parameters [1] { |
51 | | - Parameter #0 [ <required> $uuid ] |
| 79 | + Parameter #0 [ <required> string $uuid ] |
52 | 80 | } |
| 81 | + - Return [ int ] |
53 | 82 | } |
54 | 83 | Function [ <internal:uuid> function uuid_time ] { |
55 | 84 |
|
56 | 85 | - Parameters [1] { |
57 | | - Parameter #0 [ <required> $uuid ] |
| 86 | + Parameter #0 [ <required> string $uuid ] |
58 | 87 | } |
| 88 | + - Return [ int ] |
59 | 89 | } |
60 | 90 | Function [ <internal:uuid> function uuid_mac ] { |
61 | 91 |
|
62 | 92 | - Parameters [1] { |
63 | | - Parameter #0 [ <required> $uuid ] |
| 93 | + Parameter #0 [ <required> string $uuid ] |
64 | 94 | } |
| 95 | + - Return [ string ] |
65 | 96 | } |
66 | 97 | Function [ <internal:uuid> function uuid_parse ] { |
67 | 98 |
|
68 | 99 | - Parameters [1] { |
69 | | - Parameter #0 [ <required> $uuid ] |
| 100 | + Parameter #0 [ <required> string $uuid ] |
70 | 101 | } |
| 102 | + - Return [ string ] |
71 | 103 | } |
72 | 104 | Function [ <internal:uuid> function uuid_unparse ] { |
73 | 105 |
|
74 | 106 | - Parameters [1] { |
75 | | - Parameter #0 [ <required> $uuid ] |
| 107 | + Parameter #0 [ <required> string $uuid ] |
76 | 108 | } |
| 109 | + - Return [ string ] |
77 | 110 | } |
78 | 111 | } |
79 | 112 | } |
|
0 commit comments