php56 5.6.40-14 scanf issue fixed, added more patches for libxml etc.
Search Criteria
Package Details: php56-xml 5.6.40-14
Package Actions
| Git Clone URL: | https://aur.archlinux.org/php56.git (read-only, click to copy) |
|---|---|
| Package Base: | php56 |
| Description: | xml modules for php56 |
| Upstream URL: | http://www.php.net |
| Keywords: | php |
| Licenses: | PHP |
| Submitter: | mickael9 |
| Maintainer: | severach (el_aur) |
| Last Packager: | el_aur |
| Votes: | 50 |
| Popularity: | 0.000157 |
| First Submitted: | 2016-01-03 21:26 (UTC) |
| Last Updated: | 2025-12-20 21:57 (UTC) |
Dependencies (55)
- libxml2 (libxml2-gitAUR, libxml2-meson-gitAUR)
- php56AUR
- acl (acl-gitAUR) (make)
- apache (apache-gitAUR) (make)
- aspell (aspell-gitAUR) (make)
- autoconf (autoconf-gitAUR) (make)
- automake (automake-gitAUR) (make)
- bash (bash-devel-gitAUR, bash-gitAUR) (make)
- c-clientAUR (make)
- coreutils (coreutils-gitAUR, coreutils-selinuxAUR, uutils-coreutils-gitAUR) (make)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- db5.3 (make)
- e2fsprogs (e2fsprogs-gitAUR) (make)
- enchant (make)
- findutils (findutils-gitAUR, findutils-selinuxAUR) (make)
- freetds (make)
- gawk (gawk-gitAUR) (make)
- gd (gd-gitAUR) (make)
- gmp (gmp-hgAUR) (make)
- hspell (make)
- Show 35 more dependencies...
Required by (7)
Sources (29)
- debian-php-5.6.40.patch
- fpm-numeric-uid-gid.patch
- fpm-reload-sighup.patch
- https://php.net/distributions/php-5.6.40.tar.xz
- libxml-21200-php-5.6.patch
- libxml-attribute-php-8.0.patch
- libxml-pear-php-8.0.patch
- make-tests.patch
- mysql-socket-php5.3.patch
- openssl-1.1.patch
- openssl-sslv3-consts.patch
- pear-config-patcher.php
- php-apache.conf
- php-enchant-depr.patch
- php-enchant-php5.3.patch
- php-freetype-2.9.1.patch
- php-icu-php5.5.patch
- php-libxml.patch
- php-makefile-patcher.php
- php-mysqlnd-charsets.patch
- php-mysqlnd.patch
- php-opcache-lockfile-path.patch
- php-phpinfo.patch
- php55-phar-names.patch
- php56-autoconf.patch
- recode-php5.3.patch
- scanf-php-5.6.patch
- timezonedb-guess.patch
- timezonedb-php5.6.patch
el_aur commented on 2025-12-20 21:49 (UTC)
warmos commented on 2025-07-13 15:36 (UTC) (edited on 2025-07-13 17:43 (UTC) by warmos)
Hello, provided solution by @theorland does fix the libxml error but now it produces another error. Here's output:
/home/warmos/packages/php56/src/php-5.6.40/ext/standard/scanf.c: In function 'php_sscanf_internal':
/home/warmos/packages/php56/src/php-5.6.40/ext/standard/scanf.c:1063:57: error: too many arguments to function 'fn'; expected 0, have 3
1063 | value = (long) (*fn)(buf, NULL, base);
| ~^~~~ ~~~
make: *** [Makefile:2076: ext/standard/scanf.lo] Error 1
==> ERROR: A failure occurred in build().
Aborting...
theorland commented on 2025-07-08 10:28 (UTC) (edited on 2025-07-08 10:37 (UTC) by theorland)
@severach solution is worked, but the patch is failed on mine, I will attach my fixed patch file after edit the file manually
to summary add CFLAGS parameter with "-std=gnu17" on PKGBUILD create patch file with text below, and add the file in PKGBUILD
diff -Naur a/ext/libxml/libxml.c b/ext/libxml/libxml.c
--- a/ext/libxml/libxml.c 2025-07-08 18:16:41.095349540 +0800
+++ b/ext/libxml/libxml.c 2025-07-08 18:15:46.105909001 +0800
@@ -36,6 +36,7 @@
#if HAVE_LIBXML
+#include <ansidecl.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/tree.h>
@@ -421,7 +422,7 @@
static xmlOutputBufferPtr
php_libxml_output_buffer_create_filename(const char *URI,
xmlCharEncodingHandlerPtr encoder,
- int compression ATTRIBUTE_UNUSED)
+ int compression __attribute__((__unused__)))
{
xmlOutputBufferPtr ret;
xmlURIPtr puri;
and then don't forget parameter "--skipinteg" on makepkg
theorland commented on 2025-07-08 04:52 (UTC) (edited on 2025-07-08 08:26 (UTC) by theorland)
Error occur when try to compiling
/bin/sh ~/.cache/yay/php56/src/build-cli/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/openssl/ -I~/.cache/yay/php56/src/php-5.6.40/ext/openssl/ -DPHP_ATOM_INC -I~/.cache/yay/php56/src/build-cli/include -I~/.cache/yay/php56/src/build-cli/main -I~/.cache/yay/php56/src/php-5.6.40 -I~/.cache/yay/php56/src/build-cli/ext/date/lib -I~/.cache/yay/php56/src/php-5.6.40/ext/date/lib -I~/.cache/yay/php56/src/php-5.6.40/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant-2 -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/imap -I~/.cache/yay/php56/src/php-5.6.40/ext/mbstring/oniguruma -I~/.cache/yay/php56/src/build-cli/ext/mbstring/oniguruma -I~/.cache/yay/php56/src/php-5.6.40/ext/mbstring/libmbfl -I~/.cache/yay/php56/src/build-cli/ext/mbstring/libmbfl -I~/.cache/yay/php56/src/php-5.6.40/ext/mbstring/libmbfl/mbfl -I~/.cache/yay/php56/src/build-cli/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I~/.cache/yay/php56/src/build-cli/TSRM -I~/.cache/yay/php56/src/build-cli/Zend -I~/.cache/yay/php56/src/php-5.6.40/main -I~/.cache/yay/php56/src/php-5.6.40/Zend -I~/.cache/yay/php56/src/php-5.6.40/TSRM -I~/.cache/yay/php56/src/build-cli/ -DU_USING_ICU_NAMESPACE=1 -DU_DEFINE_FALSE_AND_TRUE=1 -I/usr/include -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -Wno-error=incompatible-pointer-types -Wno-implicit-function-declaration -fpermissive -fvisibility=hidden -c ~/.cache/yay/php56/src/php-5.6.40/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo /bin/sh ~/.cache/yay/php56/src/build-cli/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/pcre/ -I~/.cache/yay/php56/src/php-5.6.40/ext/pcre/ -DPHP_ATOM_INC -I~/.cache/yay/php56/src/build-cli/include -I~/.cache/yay/php56/src/build-cli/main -I~/.cache/yay/php56/src/php-5.6.40 -I~/.cache/yay/php56/src/build-cli/ext/date/lib -I~/.cache/yay/php56/src/php-5.6.40/ext/date/lib -I~/.cache/yay/php56/src/php-5.6.40/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant-2 -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/imap -I~/.cache/yay/php56/src/php-5.6.40/ext/mbstring/oniguruma -I~/.cache/yay/php56/src/build-cli/ext/mbstring/oniguruma -I~/.cache/yay/php56/src/php-5.6.40/ext/mbstring/libmbfl -I~/.cache/yay/php56/src/build-cli/ext/mbstring/libmbfl -I~/.cache/yay/php56/src/php-5.6.40/ext/mbstring/libmbfl/mbfl -I~/.cache/yay/php56/src/build-cli/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I~/.cache/yay/php56/src/build-cli/TSRM -I~/.cache/yay/php56/src/build-cli/Zend -I~/.cache/yay/php56/src/php-5.6.40/main -I~/.cache/yay/php56/src/php-5.6.40/Zend -I~/.cache/yay/php56/src/php-5.6.40/TSRM -I~/.cache/yay/php56/src/build-cli/ -DU_USING_ICU_NAMESPACE=1 -DU_DEFINE_FALSE_AND_TRUE=1 -I/usr/include -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -Wno-error=incompatible-pointer-types -Wno-implicit-function-declaration -fpermissive -fvisibility=hidden -c ~/.cache/yay/php56/src/php-5.6.40/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo ~/.cache/yay/php56/src/php-5.6.40/ext/libxml/libxml.c:429:47: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATTRIBUTE_UNUSED’ 429 | int compression ATTRIBUTE_UNUSED)
~/.cache/yay/php56/src/php-5.6.40/ext/libxml/libxml.c: In function ‘zm_startup_libxml’: ~/.cache/yay/php56/src/php-5.6.40/ext/libxml/libxml.c:874:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’? 874 | xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | php_libxml_input_buffer_create_filename
~/.cache/yay/php56/src/php-5.6.40/ext/libxml/libxml.c: In function ‘zm_activate_libxml’: ~/.cache/yay/php56/src/php-5.6.40/ext/libxml/libxml.c:887:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’? 887 | xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);
freaks commented on 2025-05-14 11:43 (UTC) (edited on 2025-05-14 11:45 (UTC) by freaks)
hello i have this error when i build
/usr/include/libxml2/libxml/xmlerror.h:904:57: note: « xmlStructuredErrorFunc » {alias « void (*)(void *, const struct _xmlError *) »} attendu mais l'argument est de type « void (*)(void *, xmlError *) » {alias « void (*)(void *, struct _xmlError *) »}
904 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/gael/.cache/yay/php56/src/php-5.6.40/ext/libxml/libxml.c:743:21: note: « php_libxml_structured_error_handler » déclaré ici
743 | PHP_LIBXML_API void php_libxml_structured_error_handler(void *userData, xmlErrorPtr error)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:870:16: note: « xmlStructuredErrorFunc » déclaré ici
870 | typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error);
severach commented on 2025-05-04 19:54 (UTC) (edited on 2025-06-15 16:54 (UTC) by severach)
Got this to compile in gcc 15. Add -std=gnu17 to CFLAGS. Apply this patch. 2 test failures.
diff -pNaru5 a/ext/libxml/libxml.c b/ext/libxml/libxml.c
--- a/ext/libxml/libxml.c 2025-05-04 15:10:50.890074330 -0400
+++ b/ext/libxml/libxml.c 2025-05-04 15:11:22.363531315 -0400
@@ -424,11 +424,11 @@ php_libxml_input_buffer_create_filename(
}
static xmlOutputBufferPtr
php_libxml_output_buffer_create_filename(const char *URI,
xmlCharEncodingHandlerPtr encoder,
- int compression ATTRIBUTE_UNUSED)
+ int compression __attribute__((__unused__)))
{
xmlOutputBufferPtr ret;
xmlURIPtr puri;
void *context = NULL;
char *unescaped = NULL;
This patch also works, in php56 and php74.
diff -pNaru5 a/ext/libxml/libxml.c b/ext/libxml/libxml.c
--- a/ext/libxml/libxml.c 2025-06-05 00:56:42.896602580 -0400
+++ b/ext/libxml/libxml.c 2025-06-05 00:57:27.933510840 -0400
@@ -34,10 +34,11 @@
#include "ext/standard/info.h"
#include "ext/standard/file.h"
#if HAVE_LIBXML
+#include <ansidecl.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/tree.h>
#include <libxml/uri.h>
#include <libxml/xmlerror.h>
drankinatty commented on 2025-02-21 04:14 (UTC) (edited on 2025-03-06 08:53 (UTC) by drankinatty)
libxml2 2.13.6-2 removes /usr/bin/xml2-config which broke this package (and many others) I've working on this from github libarchive - use pkg-config to find libxml2 and with the current acinclude.m4 in the php-5.6.40 source.
NOTE: what the gods taketh away, the gods giveth back sometimes. libxml2 2.13.6-3 restores /usr/bin/xml2-config, so this builds again. Keep the previous message (below) in mind, because just as they giveth, they can taketh back again.
You will likely need to create a patch from Fix GH-14834: Error installing PHP when --with-pear is used to patch ext/xml/compat.c due to API changes in libxml2 between version 2.12 and 2.13. (you can omit the .phpt test from that commit)
If xml2-config is removed again, it looks like we can simply rename configure.in to configure.ac and mkdir m4 and add AC_CONFIG_MACRO_DIRS([m4]) (nit but should do it), then rm configure ltmain.sh aclocal.m4 and then after applying all patches in prepare(), just call autoreconf -i to regenerate the files before calling ./configure. I'm not an autotools expert, so converting the acinclude.m4 to use pkg-conf in the PHP_SETUP_LIBXML section is taking a bit of reading.
kasugano commented on 2024-06-07 23:19 (UTC)
@jepg92 Thank you very much for the information. Fixed both "php56" and "php74" builds here.
jepg92 commented on 2024-06-07 17:13 (UTC)
@kasugano solution from @Zeph in php72 package works for me
kasugano commented on 2024-05-28 06:16 (UTC) (edited on 2024-05-28 06:18 (UTC) by kasugano)
Got errors when rebuilding the php56 today ;)
/home/kasugano/.cache/aur/php56/src/php-5.6.40/ext/libxml/libxml.c:1002:49: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]
1002 | xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
In file included from /usr/include/libxml2/libxml/valid.h:15,
from /usr/include/libxml2/libxml/parser.h:19,
from /home/kasugano/.cache/aur/php56/src/php-5.6.40/ext/libxml/libxml.c:39:
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *, struct _xmlError *)’}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Pinned Comments
el_aur commented on 2023-02-22 16:02 (UTC)
Read Carefully! Breaking changes in compare with native PHP package
Console version /usr/bin/php56 is installed with php56-cli subpackage, php56 doesn't include it anymore!!!
PEAR and PECL are available as php56-pear and php56-pecl subpackages
All shared modules are respresented as stand-alone subpackages and are not included with php56 package anymore.
No more extensions in php.ini itself!
Separate INI files for each extension are placed in /etc/php56/conf.d
They are loaded in correct order according to priority
mickael9 commented on 2018-10-03 17:21 (UTC)
PHP 5.6 will stop getting security updates in January 2019. Consider upgrading to PHP 7 now
mickael9 commented on 2016-04-06 11:51 (UTC) (edited on 2018-10-03 17:18 (UTC) by mickael9)
PLEASE READ : For those who are getting "unknown public key" errors, this is NOT caused by this package. It means GPG is not configured to fetch public keys automatically (which is normal by default)
Please read the instructions at https://wiki.archlinux.org/index.php/Makepkg#Signature_checking
The easiest way to overcome this is to manually import the keys from a keyserver :
mickael9 commented on 2016-01-14 01:53 (UTC) (edited on 2016-08-06 17:00 (UTC) by mickael9)