aaPanel_Kern I'm back. igbinary extesion still failed install.
igbinary latest version is now 3.2.16
Log:
/www/server/panel/install/igbinary-3.2.12/src/php7/hash_si_ptr.c: In function ‘hash_si_ptr_rehash’:
/www/server/panel/install/igbinary-3.2.12/src/php7/hash_si_ptr.c:110:39: warning: implicit declaration of function ‘inline_hash_of_address’ [-Wimplicit-function-declaration]
110 | uint32_t hv = inline_hash_of_address(old_data[i].key) & mask;
| ^~~~~~~~~~~~~~~~~~~~~~
/www/server/panel/install/igbinary-3.2.12/src/php7/hash_si_ptr.c: At top level:
/www/server/panel/install/igbinary-3.2.12/src/php7/hash_si_ptr.c:133:64: error: unknown type name ‘zend_uintptr_t’
133 | size_t hash_si_ptr_find_or_insert(struct hash_si_ptr *h, const zend_uintptr_t key, uint32_t value) {
| ^~~~~~~~~~~~~~
make: *** [Makefile:216: src/php7/hash_si_ptr.lo] Error 1
error
|-Successify --- Command executed! ---
I've tried to modify /www/server/panel/install/igbinary.sh
but it did not work
`#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
actionType=$1
version=$2
vphp=${version:0:1}.${version:1:1}
Ext_Path(){
case "${version}" in
'83')
extFile='/www/server/php/83/lib/php/extensions/no-debug-non-zts-20230831/igbinary.so'
;;
'84')
extFile='/www/server/php/84/lib/php/extensions/no-debug-non-zts-20240924/igbinary.so'
;;
esac
}
Install_igbinary(){
if [ ! -f "/www/server/php/$version/bin/php-config" ];then
echo "php-$vphp 未安装,请选择其它版本!"
echo "php-$vphp not install, Plese select other version!"
return
fi
isInstall=`cat /www/server/php/$version/etc/php.ini|grep 'igbinary.so'`
if [ "${isInstall}" != "" ];then
echo "php-$vphp 已安装过igbinary,请选择其它版本!"
echo "php-$vphp is already installed igbinary, Plese select other version!"
exit
fi
if [ ! -f "${extFile}" ];then
if [ "${version}" -ge 70 ];then
igbinaryVer="3.2.16"
else
igbinaryVer="2.0.8"
fi
wget https://pecl.php.net/get/igbinary-3.2.16.tgz -T 5
tar zxvf igbinary-${igbinaryVer}.tgz
rm -f igbinary-${igbinaryVer}.tgz
cd igbinary-${igbinaryVer}
/www/server/php/${version}/bin/phpize
./configure --with-php-config=/www/server/php/${version}/bin/php-config
make && make install
cd ../
rm -rf igbinary-${igbinaryVer}
fi
if [ ! -f "${extFile}" ];then
echo 'error';
exit 0;
fi
echo -e "extension = ${extFile}\n" >> /www/server/php/$version/etc/php.ini
if [[ -f /www/server/php/$version/etc/php-cli.ini ]];then
echo -e "extension = " ${extFile} >> /www/server/php/$version/etc/php-cli.ini
fi
/etc/init.d/php-fpm-$version reload
echo '==============================================='
echo 'successful!'
}
Uninstall_igbinary(){
if [ ! -f "/www/server/php/$version/bin/php-config" ];then
echo "php-$vphp 未安装,请选择其它版本!"
echo "php-$vphp not install, Plese select other version!"
return
fi
isInstall=`cat /www/server/php/$version/etc/php.ini|grep 'igbinary.so'`
if [ "${isInstall}" = "" ];then
echo "php-$vphp 未安装sysvmsg,请选择其它版本!"
echo "php-$vphp not install sysvmsg, Plese select other version!"
return
fi
sed -i '/igbinary.so/d' /www/server/php/$version/etc/php.ini
if [ -f /www/server/php/$version/etc/php-cli.ini ];then
sed -i '/igbinary.so/d' /www/server/php/$version/etc/php-cli.ini
fi
rm -f ${extFile}
/etc/init.d/php-fpm-$version reload
echo '==============================================='
echo 'successful!'
}
if [ "$actionType" == 'install' ];then
Node_Check
Ext_Path
Install_igbinary
elif [ "$actionType" == 'uninstall' ];then
Ext_Path
Uninstall_igbinary
fi
`