When compiling, an error occurs in libxml.c; error: argument 2 of 'xmlSetStructuredErrorFunc' is passed from an incompatible pointer type [-Wincompatible-pointer-types]
1007 | xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);
| ^~~~
| |
| void ()(void , xmlError ) {aka void ()(void , struct _xmlError )}
The same thing happens with other versions of php: php56, php70, php71, at least those are the ones I tried to install. Any ideas about it?
Pinned Comments
el_aur commented on 2022-02-03 18:56 (UTC) (edited on 2022-02-04 11:28 (UTC) by el_aur)
Created binary repository on build.opensuse.org
https://build.opensuse.org/project/show/home:el:archphp
For Arch Linux, edit /etc/pacman.conf and add the following (note that the order of repositories in pacman.conf is important, since pacman always downloads the first found package):
Then run the following as root
Refresh packages database
Now search for php packages you need:
Install with
pacman -S
packages you need or all PHP 7.2 packages with:el_aur commented on 2022-01-27 12:11 (UTC) (edited on 2022-01-27 15:19 (UTC) by el_aur)
Read Carefully! Breaking changes in compare with native PHP package
Console version
/usr/bin/php72
is installed withphp72-cli
subpackage,php72
doesn't include it anymore!!!PEAR and PECL are available as
php72-pear
andphp72-pecl
subpackagesAll shared modules are respresented as stand-alone subpackages and are not included with
php72
package anymore.No more extensions in php.ini itself!
Separate INI files for each extension are placed in
/etc/php72/conf.d
They are loaded in correct order according to priority