if(function_exists('zend_thread_id')){
$thread_id = zend_thread_id();
echo 'Current thread id is: ' . $thread_id;
}else{
echo 'Zend non-thread safe';
}
(PHP 4, PHP 5, PHP 7)
zend_version — Gets the version of the current Zend engine
Returns a string containing the version of the currently running Zend Engine.
Returns the Zend Engine version number, as a string.
Example #1 zend_version() example
<?php
echo "Zend engine version: " . zend_version();
?>
Exemplul de mai sus va afișa ceva similar cu:
Zend engine version: 2.2.0
if(function_exists('zend_thread_id')){
$thread_id = zend_thread_id();
echo 'Current thread id is: ' . $thread_id;
}else{
echo 'Zend non-thread safe';
}