mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding a replacement for zend_thread_id() to use within hiphop
This commit is contained in:
parent
67d18b0c59
commit
44dd25010d
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ class String {
|
|||
$node = crc32(Configure::read('Security.salt'));
|
||||
}
|
||||
|
||||
if (function_exists('zend_thread_id')) {
|
||||
if (function_exists('hphp_get_thread_id')) {
|
||||
$pid = hphp_get_thread_id();
|
||||
} else if (function_exists('zend_thread_id')) {
|
||||
$pid = zend_thread_id();
|
||||
} else {
|
||||
$pid = getmypid();
|
||||
|
|
Loading…
Reference in a new issue