Package Details: php70-pear 7.0.33-13

Git Clone URL: https://aur.archlinux.org/php70.git (read-only, click to copy)
Package Base: php70
Description: PHP Extension and Application Repository (PEAR) for php70
Upstream URL: http://www.php.net
Licenses: PHP
Submitter: betrixed
Maintainer: wget (el_aur)
Last Packager: el_aur
Votes: 11
Popularity: 0.000000
First Submitted: 2017-02-05 08:12 (UTC)
Last Updated: 2024-03-27 15:00 (UTC)

Pinned Comments

el_aur commented on 2022-02-03 18:46 (UTC) (edited on 2022-02-04 11:29 (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 php70

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

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

el_aur commented on 2022-02-03 18:45 (UTC) (edited on 2023-02-21 12:42 (UTC) by el_aur)

Read Carefully! Breaking changes in compare with native PHP package

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

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

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

  4. No more extensions in php.ini itself!

Separate INI files for each extension are placed in /etc/php70/conf.d

They are loaded in correct order according to priority

Latest Comments

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

teekay commented on 2017-12-11 13:22 (UTC)

I second @aexoxea's and @z3ntu's comments regarding provides for the split packages.

For example php70-gd with

provides=("${pkgbase}-gd=$pkgver" "${_pkgbase}-gd=$pkgver")

would make nextcloud-12.x happy (which requires php-gd<7.2)

z3ntu commented on 2017-12-11 09:06 (UTC) (edited on 2017-12-11 10:34 (UTC) by z3ntu)

I also get

php70-apache: /usr/lib/httpd/modules/libphp7.so exists in filesystem

and I would also appreciate proper "provides" for php- packages instead of just php70-

loumray commented on 2017-12-07 02:17 (UTC) (edited on 2017-12-07 02:17 (UTC) by loumray)

I get conflict with the arch package.

How about changing: install -D -m755 ${srcdir}/build-apache/libs/libphp7.so ${pkgdir}/usr/lib/httpd/modules/libphp7.so to install -D -m755 ${srcdir}/build-apache/libs/libphp7.so ${pkgdir}/usr/lib/httpd/modules/libphp70.so

Thanks!

aexoxea commented on 2017-09-30 12:26 (UTC)

Hi, I'd like to suggest that the modules with a "provides=("${pkgbase}-xxx=$pkgver")" parameter are changed to "provides=("${_pkgbase}-xxx=$pkgver")". Using php70-intl as an example (it's not the only one though): It currently provides "php70-intl=7.0.23", whereas with this change it would provide "php-intl=7.0.23", which would be much more useful. I note the module packages for php55 and php56 are already configured this way (e.g. their intl modules show "php-intl=5.5.38" and "php-intl=5.6.31"). It would be great if the php70 modules could be consistent with that. Thank you.

francoism90 commented on 2017-09-15 10:10 (UTC)

Could you change this install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/php7_module.conf to install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/php70_module.conf? Now it conflicts with the arch package. Thanks.

lilmike commented on 2017-09-02 19:20 (UTC)

Looks like the /etc/php70/php-fpm.d/www.conf isn't backed up on package upgrade, but probably should be. -Michael.

midgard commented on 2017-08-13 13:18 (UTC)

Hi, in PKGBUILD you should quote variables that may contain spaces, in particular ${srcdir}, ${pkgdir} and ${_build}. Otherwise the build may fail.

betrixed commented on 2017-07-25 02:27 (UTC)

I incorporated the corrections suggested earlier. Sorry not checking for them often enough. This package won't pass PGP check unless the first key in the validpgpkeys array for Anatol Belski <ab@php.net> is added to the local key-ring. See comment near validpgpkeys This command line works on my setup. gpg --recv-keys 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763 I don't know how to make the package auto magically work for everybody, by having the package ensure the key is imported before the validity check. I think the validpgpkeys get checked before the call to prepare(), and therefore no way I can put key addition in the package. I also do not know how new pgp keys such as above, get proposed to put in the pacman key-ring, for use of AUR builds by makepkg.

enginefeeder101 commented on 2017-06-24 10:00 (UTC)

There is an error in PKGBUILD line 191. Due to the single quotes the php.ini file is NOT BACKED UP, your configuration will be LOST! --- PKGBUILD 2017-06-24 11:41:32.769813893 +0200 +++ PKGBUILD 2017-06-24 11:56:25.114753127 +0200 @@ -188,7 +188,7 @@ replaces=('php70-ldap') conflicts=('php70-ldap') provides=("${_pkgbase}=$pkgver") - backup=('etc/${pkgbase}/php.ini') + backup=("etc/${pkgbase}/php.ini") cd ${srcdir}/build make -j1 INSTALL_ROOT=${pkgdir} install-{modules,cli,build,headers,programs,pharcmd}

aeno commented on 2017-05-16 13:47 (UTC)

PKGBUILD line 271 should read: install -D -m644 ${srcdir}/php-fpm.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/${pkgbase}-fpm.conf currently, there's a /../ after the srcDir