2016-01-22 32 views
0

我想打電話給bintohex()和random_bytes()函數未定義在PHP 5.6的Linux

echo bintohex(random_bytes(30)); 

但我的日誌顯示

PHP Fatal error: Call to undefined function bintohex() 

PHP 5.6.17
的Apache 2.2 .15
CentOS 6.7
Mcrypt 2.5.8 (在phpinfo()頁面安裝並驗證)
extension = mcrypt.so (現在)

任何想法爲什麼我找不到bintohex()或random_bytes()函數?

+0

你可能是指['BIN2HEX '](http://php.net/manual/en/function.bin2hex.php)函數? – KarelG

回答