Package Base Details: php72

Git Clone URL: https://aur.archlinux.org/php72.git (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 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):

[home_el_archphp_Arch]
Server = https://download.opensuse.org/repositories/home:/el:/archphp/Arch/$arch

Then run the following as root

key=$(curl -fsSL https://download.opensuse.org/repositories/home:el:archphp/Arch/$(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/intl.so | grep icu
    libicuio.so.68 => /usr/lib/libicuio.so.68 (0x00007fa850fc3000)
    libicui18n.so.68 => /usr/lib/libicui18n.so.68 (0x00007fa850ca4000)
    libicuuc.so.68 => /usr/lib/libicuuc.so.68 (0x00007fa850ab5000)
    libicudata.so.68 => /usr/lib/libicudata.so.68 (0x00007fa84ef74000)
[el@archbox php72]$ pacman -Qo /usr/lib/libicudata.so.68
/usr/lib/libicudata.so.68 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

https://759352.bugs.gentoo.org/attachment.cgi?id=677674

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().
    Aborting...

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@ _pkgbase=${pkgbase%72}
 _realpkg=${pkgbase%}
 pkgname=("${pkgbase}"
          "${_realpkg}-"{cgi,apache,fpm,embed,phpdbg,dblib,enchant,gd,imap,intl,odbc,pgsql,pspell,snmp,sqlite,tidy,xsl,sodium}"")
-pkgver=7.2.33
+pkgver=7.2.34
 pkgrel=1
 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/sodium.so ${pkgdir}/usr/lib/${_realpkg}/modules/sodium.so
 }
-md5sums=('8921fa6824dee6f261a3c832a43ea6ac'
+md5sums=('adb64072b9b7e4634844a72512239a34'
          '13cda50a6a420d04ddc26935ded3164e'
          'b7d69762f7c045b3950d770e04db504c'
          'f248c783449f310291905b5551c57e48'

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