Package Details: php81-ffi 8.1.28-1

Git Clone URL: https://aur.archlinux.org/php81.git (read-only, click to copy)
Package Base: php81
Description: ffi module for php81
Upstream URL: http://www.php.net
Keywords: 8.1 php php8
Licenses: PHP
Submitter: el_aur
Maintainer: el_aur
Last Packager: el_aur
Votes: 10
Popularity: 0.005418
First Submitted: 2021-12-01 12:54 (UTC)
Last Updated: 2024-04-18 17:53 (UTC)

Pinned Comments

el_aur commented on 2022-02-02 08:43 (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 php81

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

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

el_aur commented on 2022-01-27 12:09 (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/php81 is installed with php81-cli subpackage, php81 doesn't include it anymore!!!

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

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

  4. No more extensions in php.ini itself!

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

They are loaded in correct order according to priority

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

el_aur commented on 2023-07-11 20:42 (UTC)

Version bump. Added -fPIC

df8oe commented on 2023-06-25 07:03 (UTC)

Can you please add these lines at the top of your PKGBUILD?


    export CFLAGS="${CFLAGS} -fPIC" 
    export CXXFLAGS="${CXXFLAGS} -fPIC"

Without these php-imagick fails with segfault. This is related to a gcc bug in my opinion - but the gcc-devs say it is not a bug :(

DmitrySkibitsky commented on 2023-06-17 18:20 (UTC)

export CFLAGS="${CFLAGS} -fPIC" export CXXFLAGS="${CXXFLAGS} -fPIC"

That solved my problem

@Javlonbek Thank you

DmitrySkibitsky commented on 2023-06-17 18:02 (UTC)

php81 -v command not found: php81

No matter how many times I try to install, php-config81 prints "--php-binary [/usr/bin/php81]", but there is no php81 itself in that path. How do I solve this?

kescherAUR commented on 2023-06-06 19:27 (UTC)

@Javlonbek The workaround, for me, has been to put these two lines at the top of the PKGBUILD of php81 and fully rebuild php81.

export CFLAGS="${CFLAGS} -fPIC"
export CXXFLAGS="${CXXFLAGS} -fPIC"

You may or may not also have to reinstall any extensions.

Javlonbek commented on 2023-06-06 19:04 (UTC) (edited on 2023-06-06 19:04 (UTC) by Javlonbek)

➜  ~ php81 -v
[1]    455279 segmentation fault (core dumped)  php81 -v

Help please, this happened after installation with some extensions

kescherAUR commented on 2023-05-25 08:50 (UTC)

The PKGBUILD for this package includes options=(!lto). This line should instead say options+=(!lto), so as not to override the makepkg.conf options array entirely.

el_aur commented on 2023-02-22 12:18 (UTC) (edited on 2023-02-23 10:04 (UTC) by el_aur)

@NigelCunningham memcache extension is not part of PHP distribution itself. Will be added later. Also php81-pecl subpackage is available and should be working. So you can install memcache using it

NigelCunningham commented on 2023-01-24 01:10 (UTC) (edited on 2023-01-24 01:14 (UTC) by NigelCunningham)

The memcache extension is missing from the list. Could it be added, please? (I realise I can build it myself in the meantime).

celogeek commented on 2023-01-14 11:24 (UTC)

c-client seems missing. I have found it in an old installation.