Error compile

cabn12

Verified User
Joined
Dec 17, 2019
Messages
132
In file included from /usr/local/directadmin/custombuild/psr-1.2.0/psr_cache.c:15:0:
/usr/local/directadmin/custombuild/psr-1.2.0/psr_private.h: In function 'php_psr_register_interface':
/usr/local/directadmin/custombuild/psr-1.2.0/psr_private.h:17:5: error: too many arguments to function 'zend_register_class_alias_ex'
zend_register_class_alias_ex(class_alias, class_alias_len, class_entry, 1);
^
In file included from /usr/local/php72/include/php/main/php.h:39:0,
from /usr/local/directadmin/custombuild/psr-1.2.0/psr_cache.c:6:
/usr/local/php72/include/php/Zend/zend_API.h:307:14: note: declared here
ZEND_API int zend_register_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce);
^
In file included from /usr/local/directadmin/custombuild/psr-1.2.0/psr_cache.c:15:0:
/usr/local/directadmin/custombuild/psr-1.2.0/psr_private.h: In function 'php_psr_register_class':
/usr/local/directadmin/custombuild/psr-1.2.0/psr_private.h:53:5: error: too many arguments to function 'zend_register_class_alias_ex'
zend_register_class_alias_ex(class_alias, class_alias_len, class_entry, 1);
^
In file included from /usr/local/php72/include/php/main/php.h:39:0,
from /usr/local/directadmin/custombuild/psr-1.2.0/psr_cache.c:6:
/usr/local/php72/include/php/Zend/zend_API.h:307:14: note: declared here
ZEND_API int zend_register_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce);
^
make: *** [psr_cache.lo] Error 1
 
It seems that latest version of PSR does not support PHP 7.2 anymore. CustomBuild has been updated to build the extension for PHP 7.3 and 7.4 only. It seems to be working fine now.
 
Back
Top