hhvm /hphp/test/slow/uniqid-long-prefix.php

Language PHP Lines 7
MD5 Hash 83b6d95fcadb8f169e4086d11e177cfd
Repository https://github.com/xstudio/hhvm.git View Raw File View Project SPDX
1
2
3
4
5
6
<?php
$prefix = str_repeat('0!1@2#3$4%5^6&7*', 17); // 272 characters
$id = uniqid($prefix, true);
var_dump(strlen($id) > 272);
var_dump(strncmp($prefix, $id, strlen($prefix)) == 0);
var_dump(strpos($prefix, substr($id, strlen($prefix))) === false);
Back to Top