Package Base Details: php70

Git Clone URL: https://aur.archlinux.org/php70.git (read-only, click to copy)
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: 2023-11-23 15:34 (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 .. 9 Next › Last »

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

wget commented on 2022-02-03 13:56 (UTC)

@el_aur thanks made you co maintainer :)

el_aur commented on 2022-01-27 16:28 (UTC)

Hi guys. Wanna adopt this package. Have made universal builds for all PHP versions 5.3-8.1. Maintaining already php55, php72, php73, php74, php81 in AUR

el_aur commented on 2022-01-25 14:33 (UTC)

Have ported cve patches and Debian patches, can share here if you make me comaintainer :)

PetrP commented on 2021-12-12 13:07 (UTC)

To get this compile with libicu70, I used those two patches:

git apply <(wget -qO- https://gist.githubusercontent.com/PetrP/7310f2b6bbf25be87f3f04d866104e66/raw/rakotomandimby.patch)
git apply <(wget -qO- https://gist.githubusercontent.com/PetrP/7310f2b6bbf25be87f3f04d866104e66/raw/icu70.patch)

First is from rakotomandimby's comment bellow, second is slightly modified version of this patch from php72 NAlien's comment

rakotomandimby commented on 2021-09-30 20:39 (UTC)

Hi all,

I made a repo where:

  1. I tooked the snapshot https://aur.archlinux.org/cgit/aur.git/snapshot/php70.tar.gz
  2. I addressed the TRUE and FALSE undeclared issue
  3. I addressed the GD_FLIP_HORINZONTAL GD_FLIP_VERTICAL GD_FLIP_BOTH undeclared issue https://aur.archlinux.org/packages/php74/#comment-826973

Maintainer, feel free to get it at: https://bitbucket.org/rakotomandimby/aur-php70/commits/06d776e99e5192c4284f1c51061325a6efbcaa71

Users, you can just clone the repo and run "makepkg"

hamedsbt commented on 2021-08-25 04:14 (UTC)

@df8oe , I confirm solution by @reibeku (from php71 thread) it's working:

open PKGBUILD file and Replace:


build() {
    local phpConfig="\
        --srcdir=../${_pkgbase}-${pkgver} \
        --config-cache \

With:


build() {
        export CC="gcc -DTRUE=1 -DFALSE=0"
        export CXX="g++ -DTRUE=1 -DFALSE=0"
    local phpConfig="\
        --srcdir=../${_pkgbase}-${pkgver} \
        --config-cache \

Thank you @reibeku

df8oe commented on 2021-04-29 06:29 (UTC)

I can confirm issue like @MrKMG reports - same for php71 packages.

MrKMG commented on 2021-03-15 18:53 (UTC) (edited on 2021-03-15 18:53 (UTC) by MrKMG)

I am getting the following errors while compiling with gcc version 10.2.0.

php-7.0.33/ext/intl/collator/collator_sort.c:347:26: error: ‘TRUE’ undeclared (first use in this function)
php-7.0.33/ext/intl/collator/collator_sort.c:541:26: error: ‘FALSE’ undeclared (first use in this function)

After some googling, it appears that nothing included contains #DEFINE TRUE or #DEFINE FALSE

Not sure what the appropriate way to address this is.

anxest commented on 2020-12-30 07:04 (UTC) (edited on 2020-12-30 07:09 (UTC) by anxest)

Looks like there is a new issue with icu:

php70 -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php70/modules/intl.so' - libicui18n.so.67: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 7.0.33 (cli) (built: Sep 3 2020 05:45:19) ( NTS )

Building also fails on both of my arch computers:

make: *** [Makefile:1135 : ext/intl/collator/collator_sort.lo] Erreur 1 ==> ERREUR : Une erreur s’est produite dans build().

I couldn't find a solution so far, but still looking