Package Details: php81-ffi 8.1.27-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.009783
First Submitted: 2021-12-01 12:54 (UTC)
Last Updated: 2024-01-03 11:55 (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

1 2 3 4 Next › Last »

el_aur commented on 2023-11-23 15:17 (UTC)

@jacklem thanks for fix, included to PKGBUILD

jacklem commented on 2023-11-22 19:33 (UTC) (edited on 2023-11-22 21:57 (UTC) by jacklem)

I FIXED THE ERRORS BY CHANGING THE FILES SHOWN HERE IN THE PHP SOURCE AT GITHUB https://github.com/php/php-src/commit/8a95e616b91ac0eeedba90a61e36e652919763f2

Package FAILS to build due to several similar errors in the file php.libxml.h from lines 148 to 154.

[...]php-8.1.25/ext/libxml/php_libxml.h: In function ‘php_libxml_sanitize_parse_ctxt_options’:
/php-8.1.25/ext/libxml/php_libxml.h:148:13: error: invalid use of incomplete typedef ‘xmlParserCtxt’ {aka ‘struct _xmlParserCtxt’}
  148 |         ctxt->loadsubset = 0;
      |             ^~
/php-8.1.25/ext/libxml/php_libxml.h:149:13: error: invalid use of incomplete typedef ‘xmlParserCtxt’ {aka ‘struct _xmlParserCtxt’}
  149 |         ctxt->validate = 0;
      |             ^~
/php-8.1.25/ext/libxml/php_libxml.h:150:13: error: invalid use of incomplete typedef ‘xmlParserCtxt’ {aka ‘struct _xmlParserCtxt’}
  150 |         ctxt->pedantic = 0;
      |             ^~
/php-8.1.25/ext/libxml/php_libxml.h:151:13: error: invalid use of incomplete typedef ‘xmlParserCtxt’ {aka ‘struct _xmlParserCtxt’}
  151 |         ctxt->replaceEntities = 0;
      |             ^~
/php-8.1.25/ext/libxml/php_libxml.h:152:13: error: invalid use of incomplete typedef ‘xmlParserCtxt’ {aka ‘struct _xmlParserCtxt’}
  152 |         ctxt->linenumbers = 0;
      |             ^~
/php-8.1.25/ext/libxml/php_libxml.h:153:13: error: invalid use of incomplete typedef ‘xmlParserCtxt’ {aka ‘struct _xmlParserCtxt’}
  153 |         ctxt->keepBlanks = 1;
      |             ^~
/php-8.1.25/ext/libxml/php_libxml.h:154:13: error: invalid use of incomplete typedef ‘xmlParserCtxt’ {aka ‘struct _xmlParserCtxt’}
  154 |         ctxt->options = 0;
      |             ^~

DmitrySkibitsky commented on 2023-10-17 09:47 (UTC) (edited on 2023-10-17 09:48 (UTC) by DmitrySkibitsky)

Upgraded to 8.1.24. Everything's fine. The only thing is that I still need to set values for CFLAGS and CXXFLAGS variables.

php -m                                                                                                 
[PHP Modules]
bcmath bz2 calendar Core ctype curl date dba dom enchant
exif FFI fileinfo filter ftp gd gettext gmp hash iconv imagick imap
intl json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre
PDO pdo_dblib PDO_Firebird pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar
posix pspell readline redis Reflection session shmop SimpleXML
snmp soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem
sysvshm tidy tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib
[Zend Modules]
Zend OPcache
PHP 8.1.24 (cli) (built: Oct 17 2023 09:19:37) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.24, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.24, Copyright (c), by Zend Technologies

gebeer commented on 2023-07-31 14:49 (UTC)

@el_aur key for repo at build.opensuse.org seems to have changed. Following your instructions, pacman -Syy results in:

error: home_el_archphp_Arch: signature from "home:el OBS Project <home:el@build.opensuse.org>" is invalid

DmitrySkibitsky commented on 2023-07-12 12:44 (UTC) (edited on 2023-07-12 12:46 (UTC) by DmitrySkibitsky)

@el_aur I have upgraded to version 8.1.21. Thank you.

PHP 8.1.21 (cli) (built: Jul 12 2023 07:01:12) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.21, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.21, Copyright (c), by Zend Technologies
php -m
[PHP Modules]
bcmath bz2 calendar Core ctype curl date dba dom enchant exif FFI fileinfo
filter ftp gd gettext gmp hash iconv imagick imap intl json ldap libxml mbstring
mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_dblib PDO_Firebird pdo_mysql PDO_ODBC
pdo_pgsql pdo_sqlite pgsql Phar posix pspell readline redis Reflection session
shmop SimpleXML snmp soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm
tidy tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib
[Zend Modules] Zend OPcache

DmitrySkibitsky commented on 2023-07-12 09:53 (UTC) (edited on 2023-07-12 09:54 (UTC) by DmitrySkibitsky)

@el_aur Yes, I have aur/php81-cli (8.1.17-1) installed.
Currently trying to upgrade to php81-8.1.21-1

el_aur commented on 2023-07-12 08:23 (UTC)

@DmitrySkibitsky have you insalled php81-cli subpackage?