Package Base Details: php72

Git Clone URL: (read-only, click to copy)
Keywords: 7.2 php php7
Submitter: el_aur
Maintainer: el_aur
Last Packager: el_aur
Votes: 11
Popularity: 0.53
First Submitted: 2019-01-31 20:58 (UTC)
Last Updated: 2022-11-05 17:49 (UTC)

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

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):

Server =$arch

Then run the following as root

key=$(curl -fsSL$(uname -m)/home_el_archphp_Arch.key)
fingerprint=$(gpg --quiet --with-colons --import-options show-only --import --fingerprint <<< "${key}" | awk -F: '$1 == "fpr" { print $10 }')
pacman-key --init
pacman-key --add - <<< "${key}"
pacman-key --lsign-key "${fingerprint}"

Refresh packages database

pacman -Syy

Now search for php packages you need:

pacman -Ss php72

Install with pacman -S packages you need or all PHP 7.2 packages with:

sudo pacman -S $(pacman -Ssq | grep '^php72')

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

  1. Console version /usr/bin/php72 is installed with php72-cli subpackage, php72 doesn't include it anymore!!!

  2. PEAR and PECL are available as php72-pear and php72-pecl subpackages

  3. All shared modules are respresented as stand-alone subpackages and are not included with php72 package anymore.

  4. 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

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

el_aur commented on 2021-01-15 10:18 (UTC) (edited on 2021-01-15 10:20 (UTC) by el_aur)

@Anagastes: Build is fine, check your icu library version

[el@archbox php72]$ ldd /usr/lib/php72/modules/ | grep icu => /usr/lib/ (0x00007fa850fc3000) => /usr/lib/ (0x00007fa850ca4000) => /usr/lib/ (0x00007fa850ab5000) => /usr/lib/ (0x00007fa84ef74000)
[el@archbox php72]$ pacman -Qo /usr/lib/
/usr/lib/ is owned by icu 68.2-1

Latest php72 version is to be built with icu 68.2, but not with earlier version!

So just upgrade system before building php72 ;)

Anagastes commented on 2021-01-14 13:53 (UTC)

Cant compile latest version

/home/andre/.cache/yay/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c: In Funktion »zif_collator_sort«:
/home/andre/.cache/yay/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c:349:26: Fehler: »true« nicht deklariert (erste Verwendung in dieser Funktion)
  349 |  collator_sort_internal( true, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~
/home/andre/.cache/yay/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c:349:26: Anmerkung: jeder nicht deklarierte Bezeichner wird nur einmal für jede Funktion, in der er vorkommt, gemeldet
/home/andre/.cache/yay/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c: In Funktion »zif_collator_asort«:
/home/andre/.cache/yay/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c:543:26: Fehler: »false« nicht deklariert (erste Verwendung in dieser Funktion)
  543 |  collator_sort_internal( false, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~~
make: *** [Makefile:1146: ext/intl/collator/collator_sort.lo] Fehler 1
make: *** Es wird auf noch nicht beendete Prozesse gewartet....
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
error making: php72

el_aur commented on 2020-12-28 21:16 (UTC) (edited on 2020-12-28 21:17 (UTC) by el_aur)

Updated with new version. Took solution from

Related to icu library update

el_aur commented on 2020-12-28 21:11 (UTC) (edited on 2020-12-28 21:11 (UTC) by el_aur)

@messju getting error while building intl:

/home/el/_aur/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c: In function ‘zif_collator_sort’:
/home/el/_aur/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c:349:26: error: ‘TRUE’ undeclared (first use in this function)
  349 |  collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~
/home/el/_aur/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c:349:26: note: each undeclared identifier is reported only once for each function it appears in
/home/el/_aur/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c: In function ‘zif_collator_asort’:
/home/el/_aur/php72/src/php-7.2.34/ext/intl/collator/collator_sort.c:543:26: error: ‘FALSE’ undeclared (first use in this function)
  543 |  collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~~
make: *** [Makefile:1146: ext/intl/collator/collator_sort.lo] Error 1
==> ERROR: A failure occurred in build().

el_aur commented on 2020-12-28 19:52 (UTC)

updated to 7.2.34. Thanks @messju

messju commented on 2020-11-11 16:27 (UTC) (edited on 2020-11-11 16:28 (UTC) by messju)

There was a new release on October 1st. I did this to upgrade:

diff --git a/PKGBUILD b/PKGBUILD
index 8dbbee8..68def49 100644
@@ -3,7 +3,7 @@ _pkgbase=${pkgbase%72}
 pkgdesc="php 7.2 compiled as to not conflict with mainline php"
 arch=('i686' 'x86_64')
@@ -349,7 +349,7 @@ package_php72-sodium() {
     depends=("${pkgbase}" 'libsodium')
     install -D -m755 ${srcdir}/build/modules/ ${pkgdir}/usr/lib/${_realpkg}/modules/

GramachoGuy commented on 2020-07-15 20:44 (UTC)

How to install the pdo_firebird extension for php 7.2?

meister1337 commented on 2020-06-17 09:40 (UTC)

@el_aur thanks, the rebuild of php72 and php72-xsl fixed it.

el_aur commented on 2020-06-17 09:00 (UTC)

@meister1337 also don't forget to make pacman -Syu before building php72 to get latest versions of packages