PATH:
opt
/
alt
/
tests
/
alt-php85-pecl-uuid_1.2.0-1.el8
/
tests
--TEST-- uuid_time() function --SKIPIF-- <?php if(!extension_loaded('uuid')) die('skip '); ?> --FILE-- <?php var_dump(uuid_time("b691c99c-7fc5-11d8-9fa8-00065b896488")); try { if (!uuid_time("878b258c-a9f1-467c-8e1d-47d79ca2c01b")) { echo "OK\n"; // PHP 7 } } catch (ValueError $e) { echo $e->getMessage() . "\n"; // PHP 8 echo "OK\n"; } ?> --EXPECTF-- int(1080374815) %A UUID DCE TIME expecte%AOK
[-] uuid_generate_md5.phpt
[edit]
[-] uuid_compare.phpt
[edit]
[-] uuid_type.phpt
[edit]
[-] uuid_mac.phpt
[edit]
[-] uuid_is_null.phpt
[edit]
[-] uuid_variant.phpt
[edit]
[-] uuid_create.phpt
[edit]
[+]
..
[-] uuid_is_valid.phpt
[edit]
[-] uuid_time.phpt
[edit]
[-] uuid_unparse.phpt
[edit]
[-] uuid_generate_sha1.phpt
[edit]
[-] uuid_parse.phpt
[edit]