mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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'));
|
$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();
|
$pid = zend_thread_id();
|
||||||
} else {
|
} else {
|
||||||
$pid = getmypid();
|
$pid = getmypid();
|
||||||
|
|
Loading…
Reference in a new issue