Установить pecl-hash на ubuntu

Бюджет: 150 руб
2.02 $ – 1.74 €
Заказчик выбрал исполнителя:
Evgeniy Lermontov  
$p_sign = hmac_hash("sha1",$output_string,pack("H*",$salt));
выдает
Call to undefined function hmac_hash() 

Все установил, но при установке:
pecl install hash

/tmp/pear/temp/hash/hash.c:785:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:792:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_file, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:799:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_hmac, 0, 0, 3)
^
/tmp/pear/temp/hash/hash.c:807:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_hmac_file, 0, 0, 3)
^
/tmp/pear/temp/hash/hash.c:815:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_init, 0, 0, 1)
^
/tmp/pear/temp/hash/hash.c:822:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO(arginfo_hash_update, 0)
^
/tmp/pear/temp/hash/hash.c:828:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_update_stream, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:835:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_update_file, 0, 0, 2)
^
/tmp/pear/temp/hash/hash.c:842:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_final, 0, 0, 1)
^
/tmp/pear/temp/hash/hash.c:848:1: error: duplicate 'static'
ZEND_BEGIN_ARG_INFO(arginfo_hash_algos, 0)
^
make: *** [hash.lo] Error 1



Главное – чтобы работала php-функция hmac_hash.
Опубликован 27.01.2015 в 11:48

Выберите способ верификации:

Обновите страницу после прохождения верификации.