Package Details: php-ast 1.1.1-2

Git Clone URL: https://aur.archlinux.org/php-ast.git (read-only, click to copy)
Package Base: php-ast
Description: Extension exposing PHP 7 abstract syntax tree
Upstream URL: https://pecl.php.net/package/ast
Keywords: ast pecl php
Licenses: BSD
Submitter: bgaleotti
Maintainer: leo980
Last Packager: leo980
Votes: 6
Popularity: 0.000000
First Submitted: 2015-12-07 15:12 (UTC)
Last Updated: 2024-01-19 03:22 (UTC)

Dependencies (1)

Required by (1)

Sources (1)

Latest Comments

leo980 commented on 2023-10-24 15:42 (UTC)

reply to [eklausmeier]:

Sorry, I could not reproduce this error in my building system.

I built the package [php-ast=1.1.0-1] in a clean chroot with makechrootpkg, while both build() and check() passed without any issue.


Appendix:

$ cat php-ast-1.1.0-1-x86_64-build.log 
/bin/sh /build/php-ast/src/ast-1.1.0/libtool --mode=compile cc -I. -I/build/php-ast/src/ast-1.1.0 -I/build/php-ast/src/ast-1.1.0/include -I/build/php-ast/src/ast-1.1.0/main -I/build/php-ast/src/ast-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/php-ast/src/ast-1.1.0/ast.c -o ast.lo  -MMD -MF ast.dep -MT ast.lo
/bin/sh /build/php-ast/src/ast-1.1.0/libtool --mode=compile cc -I. -I/build/php-ast/src/ast-1.1.0 -I/build/php-ast/src/ast-1.1.0/include -I/build/php-ast/src/ast-1.1.0/main -I/build/php-ast/src/ast-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/php-ast/src/ast-1.1.0/ast_data.c -o ast_data.lo  -MMD -MF ast_data.dep -MT ast_data.lo
mkdir .libs
mkdir .libs
mkdir: cannot create directory '.libs': File exists
 cc -I. -I/build/php-ast/src/ast-1.1.0 -I/build/php-ast/src/ast-1.1.0/include -I/build/php-ast/src/ast-1.1.0/main -I/build/php-ast/src/ast-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/php-ast/src/ast-1.1.0/ast_data.c -MMD -MF ast_data.dep -MT ast_data.lo  -fPIC -DPIC -o .libs/ast_data.o
 cc -I. -I/build/php-ast/src/ast-1.1.0 -I/build/php-ast/src/ast-1.1.0/include -I/build/php-ast/src/ast-1.1.0/main -I/build/php-ast/src/ast-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/php-ast/src/ast-1.1.0/ast.c -MMD -MF ast.dep -MT ast.lo  -fPIC -DPIC -o .libs/ast.o
/bin/sh /build/php-ast/src/ast-1.1.0/libtool --mode=link cc -shared -I/build/php-ast/src/ast-1.1.0/include -I/build/php-ast/src/ast-1.1.0/main -I/build/php-ast/src/ast-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -o ast.la -export-dynamic -avoid-version -prefer-pic -module -rpath /build/php-ast/src/ast-1.1.0/modules  ast.lo ast_data.lo 
cc -shared  .libs/ast.o .libs/ast_data.o   -Wl,-soname -Wl,ast.so -o .libs/ast.so
creating ast.la
(cd .libs && rm -f ast.la && ln -s ../ast.la ast.la)
/bin/sh /build/php-ast/src/ast-1.1.0/libtool --mode=install cp ./ast.la /build/php-ast/src/ast-1.1.0/modules
cp ./.libs/ast.so /build/php-ast/src/ast-1.1.0/modules/ast.so
cp ./.libs/ast.lai /build/php-ast/src/ast-1.1.0/modules/ast.la
PATH="$PATH:/sbin" ldconfig -n /build/php-ast/src/ast-1.1.0/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /build/php-ast/src/ast-1.1.0/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.


$ cat php-ast-1.1.0-1-x86_64-check.log 

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /usr/bin/php 
PHP_SAPI    : cli
PHP_VERSION : 8.2.11
ZEND_VERSION: 4.2.11
PHP_OS      : Linux - Linux arch-nspawn-14458 6.5.8-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 19 Oct 2023 22:51:49 +0000 x86_64
INI actual  : /build/php-ast/src/ast-1.1.0/tmp-php.ini
More .INIs  :   
CWD         : /build/php-ast/src/ast-1.1.0
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2023-10-24 15:37:43
=====================================================================
PASS ast_dump() test [tests/001.phpt] 
PASS Array destructuring [tests/array_destructuring.phpt] 
PASS Array destructuring (using unkeyed list()) [tests/array_destructuring_old.phpt] 
PASS Assign op flags [tests/assign_ops.phpt] 
PASS ast_dump() with AST_DUMP_EXCLUDE_DOC_COMMENT [tests/ast_dump_with_exclude_doc.phpt] 
PASS ast_dump() with AST_DUMP_LINENOS [tests/ast_dump_with_linenos.phpt] 
PASS Attributes in PHP 8.0 on globals [tests/attributes_01.phpt] 
PASS Attributes in PHP 8.0 on classes [tests/attributes_02.phpt] 
PASS AST_GREATER(_EQUAL) converted to AST_BINARY_OP [tests/binary_ops.phpt] 
PASS By-reference array destructuring (PHP 7.3) [tests/by_ref_destructuring.phpt] 
PASS Test parse and dump of class [tests/class.phpt] 
PASS Class constants [tests/class_consts.phpt] 
PASS Class constants in AST version 80 [tests/class_consts_80.phpt] 
PASS Class properties in AST version 50 [tests/class_name_version_50.phpt] 
PASS Class properties in AST version 70 [tests/class_name_version_70.phpt] 
PASS $x::class in PHP 8.0 [tests/class_on_objects.phpt] 
PASS Class types only used for enums in AST version 85 [tests/class_type_85.phpt] 
PASS Different class types [tests/class_types.phpt] 
PASS Closure uses should parse to CLOSURE_USE_VAR nodes [tests/closure_use_vars.phpt] 
PASS Null-coalesce operator [tests/coalesce.phpt] 
PASS AST_CONCAT with/without parenthesis [tests/concat.phpt] 
PASS ast\Node has a __construct method [tests/constructor.phpt] 
PASS Closures should have unique identifiers within parsed code in version 50 [tests/decl_ids.phpt] 
PASS The class ast\Node\Decl no longer exists [tests/decl_normalization.phpt] 
PASS ast\parse_file() with empty file [tests/empty_file_parse.phpt] 
PASS eval() and include parsing [tests/eval_include.phpt] 
PASS Uses only make sense on closures [tests/functions_dont_use.phpt] 
PASS Flag on generator functions [tests/generator_flag.phpt] 
PASS Test ast\get_kind_name() [tests/get_kind_name.phpt] 
PASS ast\get_supported_versions() function [tests/get_supported_versions.phpt] 
PASS Magic constants [tests/magic_constants.phpt] 
PASS Match expression in PHP 8.0 [tests/match_expression.phpt] 
PASS AST metadata [tests/metadata.phpt] 
PASS Mixed types in PHP 8.0 [tests/mixed_type.phpt] 
PASS Multi catch [tests/multi_catch.phpt] 
PASS Multiple final multipliers should generate CompileError, not a fatal error [tests/multiple_final_modifiers.phpt] 
PASS Name nodes [tests/name_node.phpt] 
PASS Named child nodes [tests/named_children.phpt] 
PASS Nested statement lists [tests/nested_stmt_lists.phpt] 
PASS 'never' return type parsing [tests/never_return_type.phpt] 
PASS new ast\Node() throwing [tests/node_constructor_throw.phpt] 
PASS Nop statements [tests/nop_statements.phpt] 
PASS Nullable types [tests/nullable_types.phpt] 
PASS The object type is recognized [tests/object_type.phpt] 
PASS Function parameters [tests/params.phpt] 
PASS ast\parse_code() throwing a ParseError [tests/parse_code_parse_error.phpt] 
PASS ast\parse_file() on valid file [tests/parse_file.phpt] 
PASS ast\parse_file() on file that does not exist [tests/parse_file_not_existing.phpt] 
PASS ast\parse_file() on file with parse error [tests/parse_file_parse_error.phpt] 
PASS '??=' operator in PHP 7.4 [tests/php74_ast_assign_coalesce.phpt] 
PASS '$x{"offset"}' flag in PHP 7.4 [tests/php74_dim_alternative_syntax.phpt] 
PASS Class properties in AST version 70 (php 7.0+) [tests/php74_ordinary_class.phpt] 
PASS parenthesized conditionals in PHP 7.4 [tests/php74_parenthesized_conditional.phpt] 
PASS Property type hints in PHP 7.4 [tests/php74_type_hints.phpt] 
PASS Named parameters in PHP 8.0 [tests/php80_named_params.phpt] 
PASS Non-capturing catches in PHP 8.0 [tests/php80_noncapturing_catch.phpt] 
PASS Nullsafe operator in PHP 8.0 [tests/php80_nullsafe_operator.phpt] 
PASS Constructor property promotion in PHP 8.0 [tests/php80_promotion.phpt] 
PASS Union types in PHP 8.0 [tests/php80_static_type.phpt] 
PASS Union types in PHP 8.0 [tests/php80_union_types.phpt] 
PASS Union types in PHP 8.0 [tests/php80_union_types_false.phpt] 
PASS Union types in PHP 8.0 (nullable) [tests/php80_union_types_nullable.phpt] 
PASS Enums in php 8.1 [tests/php81_enums.phpt] 
PASS Final class constants [tests/php81_final_class_const.phpt] 
PASS First-class callables in php 8.1 [tests/php81_first_class_callable_support.phpt] 
PASS Intersection types in php 8.1 [tests/php81_intersection_types.phpt] 
PASS Readonly properties in php 8.1 [tests/php81_readonly.phpt] 
PASS Dynamic property support in php 8.2+ [tests/php82_dynamic_property_attribute.phpt] 
PASS Encapsulated variable flags in PHP 8.2 [tests/php82_encaps_list.phpt] 
PASS readonly class support in php 8.2+ [tests/php82_readonly_class.phpt] 
PASS Doc comments on properties [tests/prop_doc_comments.phpt] 
PASS Arrow functions ('fn($x) => $x') in PHP 7.4 [tests/short_arrow_function.phpt] 
PASS Nested arrow functions in PHP 7.4 [tests/short_arrow_function_decl_id.phpt] 
PASS Arrow functions and types ('fn($x) => $x') in PHP 7.4 [tests/short_arrow_function_return.phpt] 
PASS Statement list normalization [tests/stmt_list.phpt] 
PASS 'true' type parsing [tests/true_type.phpt] 
PASS try / catch / finally [tests/try_catch_finally.phpt] 
PASS Type hints [tests/type_hints.phpt] 
PASS Convert unary ops AST_(SILENCE|UNARY_(PLUS|MINUS)) to flags of ZEND_AST_UNARY_OP [tests/unary_ops.phpt] 
PASS Test parse and dump of use declarations [tests/use_declarations.phpt] 
PASS Version errors [tests/version_errors.phpt] 
PASS zpp failures throw TypeError [tests/zpp_errors.phpt] 
=====================================================================
TIME END 2023-10-24 15:37:44

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   30
---------------------------------------------------------------------

Number of tests :   82                82
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Tests passed    :   82 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================
$ php -v
PHP 8.2.11 (cli) (built: Oct  7 2023 23:40:37) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.11, Copyright (c) Zend Technologies

eklausmeier commented on 2023-10-24 15:13 (UTC) (edited on 2023-10-24 15:15 (UTC) by eklausmeier)

Build failed. Command in question: trizen -aS php-ast.

:: Pulling AUR changes: php-ast

--------------------------------------------------------------------------------
:: Content of /tmp/trizen-klm/php-ast/PKGBUILD
--------------------------------------------------------------------------------

# Maintainer: Leo <i@setuid0.dev>

_extname=ast
pkgname=php-$_extname
pkgver=1.1.0
pkgrel=1
pkgdesc='Extension exposing PHP 7 abstract syntax tree'
arch=('x86_64')
url="https://pecl.php.net/package/$_extname"
license=('BSD')
depends=('php>=7.1')
source=(
    "$pkgname-$pkgver.tar.gz::http://pecl.php.net/get/$_extname-$pkgver.tgz"
)
sha256sums=('ee3d4f67e24d82e4d340806a24052012e4954d223122949377665427443e6d13')

prepare() {
    cd $srcdir/$_extname-$pkgver

#   for i in $srcdir/*.patch;
#   do patch -p1 < $i;
#   done

    echo "extension=$_extname" > $_extname.ini

    phpize

    ./configure \
    --prefix=/usr \
    --with-ast
}

 build() {
    cd $srcdir/$_extname-$pkgver
    make
}

check() {
    cd $srcdir/$_extname-$pkgver
    NO_INTERACTION=1 make test
}

package() {
    cd $srcdir/$_extname-$pkgver
    make INSTALL_ROOT=$pkgdir install
    install -Dm644 $_extname.ini "$pkgdir/etc/php/conf.d/$_extname.ini"
}


Repository      : AUR
Name            : php-ast
Version         : 1.1.0-1
Maintainer      : leo980
URL             : https://pecl.php.net/package/ast
AUR URL         : https://aur.archlinux.org/packages/php-ast
License         : BSD
Votes           : 6
Popularity      : 0%
Installed       : No
Out Of Date     : No
Depends On      : php>=7.1
Make Deps       : None
Check Deps      : None
Optional Deps   : None
Provides        : None
Conflicts With  : None
Replaces        : None
Package Base    : php-ast
Last Update     : Sat Aug 20 12:10:07 2022
Description     : Extension exposing PHP 7 abstract syntax tree

?[1m?[32m==>?[m??[1m Making package: php-ast 1.1.0-1 (Tue 24 Oct 2023 05:08:40 PM CEST)?[m?
?[1m?[32m==>?[m??[1m Checking runtime dependencies...?[m?
?[1m?[32m==>?[m??[1m Checking buildtime dependencies...?[m?
?[1m?[32m==>?[m??[1m Retrieving sources...?[m?
?[1m?[34m  ->?[m??[1m Found php-ast-1.1.0.tar.gz?[m?
?[1m?[32m==>?[m??[1m Validating source files with sha256sums...?[m?
?[1m?[32m==>?[m??[1m Extracting sources...?[m?
?[1m?[34m  ->?[m??[1m Extracting php-ast-1.1.0.tar.gz with bsdtar?[m?
?[1m?[32m==>?[m??[1m Starting prepare()...?[m?
Configuring for:
PHP Api Version:         20220829
Zend Module Api No:      20220829
Zend Extension Api No:   420220829
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable ast support... yes, shared
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for /bin/ld option to reload object files... -r
checking for BSD-compatible nm... /bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
?[1m?[32m==>?[m??[1m Removing existing $pkgdir/ directory...?[m?
?[1m?[32m==>?[m??[1m Starting build()...?[m?

Build complete.
Don't forget to run 'make test'.

?[1m?[32m==>?[m??[1m Starting check()...?[m?

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /usr/bin/php 
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0

PHP_SAPI    : cli
PHP_VERSION : 8.2.11
ZEND_VERSION: 4.2.11
PHP_OS      : Linux - Linux chieftec 6.5.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 19 Oct 2023 22:52:14 +0000 x86_64
INI actual  : /tmp/trizen-klm/php-ast/src/ast-1.1.0/tmp-php.ini
More .INIs  :  
---------------------------------------------------------------------
PHP         : /usr/bin/php-cgi 
PHP_SAPI    : cgi-fcgi
PHP_VERSION : 8.2.11
ZEND_VERSION: 4.2.11
PHP_OS      : Linux - Linux chieftec 6.5.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 19 Oct 2023 22:52:14 +0000 x86_64
INI actual  : /tmp/trizen-klm/php-ast/src/ast-1.1.0/tmp-php.ini
More .INIs  : 
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0

--------------------------------------------------------------------- 
CWD         : /tmp/trizen-klm/php-ast/src/ast-1.1.0
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2023-10-24 17:08:42
=====================================================================
TEST 1/82 [tests/001.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/001.phpt] reason: invalid output from SKIPIF
TEST 2/82 [tests/array_destructuring.phpt]
?[1;31mFAIL?[0m Array destructuring [tests/array_destructuring.phpt] 
TEST 3/82 [tests/array_destructuring_old.phpt]
?[1;31mFAIL?[0m Array destructuring (using unkeyed list()) [tests/array_destructuring_old.phpt] 
TEST 4/82 [tests/assign_ops.phpt]
?[1;31mFAIL?[0m Assign op flags [tests/assign_ops.phpt] 
TEST 5/82 [tests/ast_dump_with_exclude_doc.phpt]
?[1;31mFAIL?[0m ast_dump() with AST_DUMP_EXCLUDE_DOC_COMMENT [tests/ast_dump_with_exclude_doc.phpt] 
TEST 6/82 [tests/ast_dump_with_linenos.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/ast_dump_with_linenos.phpt] reason: invalid output from SKIPIF
TEST 7/82 [tests/attributes_01.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/attributes_01.phpt] reason: invalid output from SKIPIF
TEST 8/82 [tests/attributes_02.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/attributes_02.phpt] reason: invalid output from SKIPIF
TEST 9/82 [tests/binary_ops.phpt]
?[1;31mFAIL?[0m AST_GREATER(_EQUAL) converted to AST_BINARY_OP [tests/binary_ops.phpt] 
TEST 10/82 [tests/by_ref_destructuring.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/by_ref_destructuring.phpt] reason: invalid output from SKIPIF
TEST 11/82 [tests/class.phpt]
?[1;31mFAIL?[0m Test parse and dump of class [tests/class.phpt] 
TEST 12/82 [tests/class_consts.phpt]
?[1;31mFAIL?[0m Class constants [tests/class_consts.phpt] 
TEST 13/82 [tests/class_consts_80.phpt]
?[1;31mFAIL?[0m Class constants in AST version 80 [tests/class_consts_80.phpt] 
TEST 14/82 [tests/class_name_version_50.phpt]
?[1;31mFAIL?[0m Class properties in AST version 50 [tests/class_name_version_50.phpt] 
TEST 15/82 [tests/class_name_version_70.phpt]
?[1;31mFAIL?[0m Class properties in AST version 70 [tests/class_name_version_70.phpt] 
TEST 16/82 [tests/class_on_objects.phpt]
?[1;31mFAIL?[0m $x::class in PHP 8.0 [tests/class_on_objects.phpt] 
TEST 17/82 [tests/class_type_85.phpt]
?[1;31mFAIL?[0m Class types only used for enums in AST version 85 [tests/class_type_85.phpt] 
TEST 18/82 [tests/class_types.phpt]
?[1;31mFAIL?[0m Different class types [tests/class_types.phpt] 
TEST 19/82 [tests/closure_use_vars.phpt]
?[1;31mFAIL?[0m Closure uses should parse to CLOSURE_USE_VAR nodes [tests/closure_use_vars.phpt] 
TEST 20/82 [tests/coalesce.phpt]
?[1;31mFAIL?[0m Null-coalesce operator [tests/coalesce.phpt] 
TEST 21/82 [tests/concat.phpt]
?[1;31mFAIL?[0m AST_CONCAT with/without parenthesis [tests/concat.phpt] 
TEST 22/82 [tests/constructor.phpt]
?[1;31mFAIL?[0m ast\Node has a __construct method [tests/constructor.phpt] 
TEST 23/82 [tests/decl_ids.phpt]
?[1;31mFAIL?[0m Closures should have unique identifiers within parsed code in version 50 [tests/decl_ids.phpt] 
TEST 24/82 [tests/decl_normalization.phpt]
?[1;31mFAIL?[0m The class ast\Node\Decl no longer exists [tests/decl_normalization.phpt] 
TEST 25/82 [tests/empty_file_parse.phpt]
?[1;31mFAIL?[0m ast\parse_file() with empty file [tests/empty_file_parse.phpt] 
TEST 26/82 [tests/eval_include.phpt]
?[1;31mFAIL?[0m eval() and include parsing [tests/eval_include.phpt] 
TEST 27/82 [tests/functions_dont_use.phpt]
?[1;31mFAIL?[0m Uses only make sense on closures [tests/functions_dont_use.phpt] 
TEST 28/82 [tests/generator_flag.phpt]
?[1;31mFAIL?[0m Flag on generator functions [tests/generator_flag.phpt] 
TEST 29/82 [tests/get_kind_name.phpt]
?[1;31mFAIL?[0m Test ast\get_kind_name() [tests/get_kind_name.phpt] 
TEST 30/82 [tests/get_supported_versions.phpt]
?[1;31mFAIL?[0m ast\get_supported_versions() function [tests/get_supported_versions.phpt] 
TEST 31/82 [tests/magic_constants.phpt]
?[1;31mFAIL?[0m Magic constants [tests/magic_constants.phpt] 
TEST 32/82 [tests/match_expression.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/match_expression.phpt] reason: invalid output from SKIPIF
TEST 33/82 [tests/metadata.phpt]
?[1;31mFAIL?[0m AST metadata [tests/metadata.phpt] 
TEST 34/82 [tests/mixed_type.phpt]
?[1;31mFAIL?[0m Mixed types in PHP 8.0 [tests/mixed_type.phpt] 
TEST 35/82 [tests/multi_catch.phpt]
?[1;31mFAIL?[0m Multi catch [tests/multi_catch.phpt] 
TEST 36/82 [tests/multiple_final_modifiers.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/multiple_final_modifiers.phpt] reason: invalid output from SKIPIF
TEST 37/82 [tests/name_node.phpt]
?[1;31mFAIL?[0m Name nodes [tests/name_node.phpt] 
TEST 38/82 [tests/named_children.phpt]
?[1;31mFAIL?[0m Named child nodes [tests/named_children.phpt] 
TEST 39/82 [tests/nested_stmt_lists.phpt]
?[1;31mFAIL?[0m Nested statement lists [tests/nested_stmt_lists.phpt] 
TEST 40/82 [tests/never_return_type.phpt]
?[1;31mFAIL?[0m 'never' return type parsing [tests/never_return_type.phpt] 
TEST 41/82 [tests/node_constructor_throw.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/node_constructor_throw.phpt] reason: invalid output from SKIPIF
TEST 42/82 [tests/nop_statements.phpt]
?[1;31mFAIL?[0m Nop statements [tests/nop_statements.phpt] 
TEST 43/82 [tests/nullable_types.phpt]
?[1;31mFAIL?[0m Nullable types [tests/nullable_types.phpt] 
TEST 44/82 [tests/object_type.phpt]
?[1;31mFAIL?[0m The object type is recognized [tests/object_type.phpt] 
TEST 45/82 [tests/params.phpt]
?[1;31mFAIL?[0m Function parameters [tests/params.phpt] 
TEST 46/82 [tests/parse_code_parse_error.phpt]
?[1;31mFAIL?[0m ast\parse_code() throwing a ParseError [tests/parse_code_parse_error.phpt] 
TEST 47/82 [tests/parse_file.phpt]
?[1;31mFAIL?[0m ast\parse_file() on valid file [tests/parse_file.phpt] 
TEST 48/82 [tests/parse_file_not_existing.phpt]
?[1;31mFAIL?[0m ast\parse_file() on file that does not exist [tests/parse_file_not_existing.phpt] 
TEST 49/82 [tests/parse_file_parse_error.phpt]
?[1;31mFAIL?[0m ast\parse_file() on file with parse error [tests/parse_file_parse_error.phpt] 
TEST 50/82 [tests/php74_ast_assign_coalesce.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php74_ast_assign_coalesce.phpt] reason: invalid output from SKIPIF
TEST 51/82 [tests/php74_dim_alternative_syntax.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php74_dim_alternative_syntax.phpt] reason: invalid output from SKIPIF
TEST 52/82 [tests/php74_ordinary_class.phpt]
?[1;31mFAIL?[0m Class properties in AST version 70 (php 7.0+) [tests/php74_ordinary_class.phpt] 
TEST 53/82 [tests/php74_parenthesized_conditional.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php74_parenthesized_conditional.phpt] reason: invalid output from SKIPIF
TEST 54/82 [tests/php74_type_hints.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php74_type_hints.phpt] reason: invalid output from SKIPIF
TEST 55/82 [tests/php80_named_params.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_named_params.phpt] reason: invalid output from SKIPIF
TEST 56/82 [tests/php80_noncapturing_catch.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_noncapturing_catch.phpt] reason: invalid output from SKIPIF
TEST 57/82 [tests/php80_nullsafe_operator.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_nullsafe_operator.phpt] reason: invalid output from SKIPIF
TEST 58/82 [tests/php80_promotion.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_promotion.phpt] reason: invalid output from SKIPIF
TEST 59/82 [tests/php80_static_type.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_static_type.phpt] reason: invalid output from SKIPIF
TEST 60/82 [tests/php80_union_types.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_union_types.phpt] reason: invalid output from SKIPIF
TEST 61/82 [tests/php80_union_types_false.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_union_types_false.phpt] reason: invalid output from SKIPIF
TEST 62/82 [tests/php80_union_types_nullable.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php80_union_types_nullable.phpt] reason: invalid output from SKIPIF
TEST 63/82 [tests/php81_enums.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php81_enums.phpt] reason: invalid output from SKIPIF
TEST 64/82 [tests/php81_final_class_const.phpt]
?[1;31mFAIL?[0m Final class constants [tests/php81_final_class_const.phpt] 
TEST 65/82 [tests/php81_first_class_callable_support.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php81_first_class_callable_support.phpt] reason: invalid output from SKIPIF
TEST 66/82 [tests/php81_intersection_types.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php81_intersection_types.phpt] reason: invalid output from SKIPIF
TEST 67/82 [tests/php81_readonly.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php81_readonly.phpt] reason: invalid output from SKIPIF
TEST 68/82 [tests/php82_dynamic_property_attribute.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php82_dynamic_property_attribute.phpt] reason: invalid output from SKIPIF
TEST 69/82 [tests/php82_encaps_list.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php82_encaps_list.phpt] reason: invalid output from SKIPIF
TEST 70/82 [tests/php82_readonly_class.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/php82_readonly_class.phpt] reason: invalid output from SKIPIF
TEST 71/82 [tests/prop_doc_comments.phpt]
?[1;31mFAIL?[0m Doc comments on properties [tests/prop_doc_comments.phpt] 
TEST 72/82 [tests/short_arrow_function.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/short_arrow_function.phpt] reason: invalid output from SKIPIF
TEST 73/82 [tests/short_arrow_function_decl_id.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/short_arrow_function_decl_id.phpt] reason: invalid output from SKIPIF
TEST 74/82 [tests/short_arrow_function_return.phpt]
?[1;31mBORK?[0m Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [tests/short_arrow_function_return.phpt] reason: invalid output from SKIPIF
TEST 75/82 [tests/stmt_list.phpt]
?[1;31mFAIL?[0m Statement list normalization [tests/stmt_list.phpt] 
TEST 76/82 [tests/true_type.phpt]
?[1;31mFAIL?[0m 'true' type parsing [tests/true_type.phpt] 
TEST 77/82 [tests/try_catch_finally.phpt]
?[1;31mFAIL?[0m try / catch / finally [tests/try_catch_finally.phpt] 
TEST 78/82 [tests/type_hints.phpt]
?[1;31mFAIL?[0m Type hints [tests/type_hints.phpt] 
TEST 79/82 [tests/unary_ops.phpt]
?[1;31mFAIL?[0m Convert unary ops AST_(SILENCE|UNARY_(PLUS|MINUS)) to flags of ZEND_AST_UNARY_OP [tests/unary_ops.phpt] 
TEST 80/82 [tests/use_declarations.phpt]
?[1;31mFAIL?[0m Test parse and dump of use declarations [tests/use_declarations.phpt] 
TEST 81/82 [tests/version_errors.phpt]
?[1;31mFAIL?[0m Version errors [tests/version_errors.phpt] 
TEST 82/82 [tests/zpp_errors.phpt]
?[1;31mFAIL?[0m zpp failures throw TypeError [tests/zpp_errors.phpt] 
=====================================================================
TIME END 2023-10-24 17:08:43

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   30
---------------------------------------------------------------------

Number of tests :   82                52
Tests borked    :   30 ( 36.6%) --------
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   52 ( 63.4%) (100.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

=====================================================================
BORKED TEST SUMMARY
---------------------------------------------------------------------
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/001.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/ast_dump_with_linenos.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/attributes_01.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/attributes_02.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/by_ref_destructuring.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/match_expression.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/multiple_final_modifiers.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/node_constructor_throw.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php74_ast_assign_coalesce.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php74_dim_alternative_syntax.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php74_parenthesized_conditional.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php74_type_hints.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_named_params.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_noncapturing_catch.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_nullsafe_operator.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_promotion.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_static_type.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_union_types.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_union_types_false.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php80_union_types_nullable.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php81_enums.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php81_first_class_callable_support.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php81_intersection_types.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php81_readonly.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php82_dynamic_property_attribute.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php82_encaps_list.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/php82_readonly_class.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/short_arrow_function.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/short_arrow_function_decl_id.phpt]
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 [/tmp/trizen-klm/php-ast/src/ast-1.1.0/tests/short_arrow_function_return.phpt]
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Array destructuring [tests/array_destructuring.phpt]
Array destructuring (using unkeyed list()) [tests/array_destructuring_old.phpt]
Assign op flags [tests/assign_ops.phpt]
ast_dump() with AST_DUMP_EXCLUDE_DOC_COMMENT [tests/ast_dump_with_exclude_doc.phpt]
AST_GREATER(_EQUAL) converted to AST_BINARY_OP [tests/binary_ops.phpt]
Test parse and dump of class [tests/class.phpt]
Class constants [tests/class_consts.phpt]
Class constants in AST version 80 [tests/class_consts_80.phpt]
Class properties in AST version 50 [tests/class_name_version_50.phpt]
Class properties in AST version 70 [tests/class_name_version_70.phpt]
$x::class in PHP 8.0 [tests/class_on_objects.phpt]
Class types only used for enums in AST version 85 [tests/class_type_85.phpt]
Different class types [tests/class_types.phpt]
Closure uses should parse to CLOSURE_USE_VAR nodes [tests/closure_use_vars.phpt]
Null-coalesce operator [tests/coalesce.phpt]
AST_CONCAT with/without parenthesis [tests/concat.phpt]
ast\Node has a __construct method [tests/constructor.phpt]
Closures should have unique identifiers within parsed code in version 50 [tests/decl_ids.phpt]
The class ast\Node\Decl no longer exists [tests/decl_normalization.phpt]
ast\parse_file() with empty file [tests/empty_file_parse.phpt]
eval() and include parsing [tests/eval_include.phpt]
Uses only make sense on closures [tests/functions_dont_use.phpt]
Flag on generator functions [tests/generator_flag.phpt]
Test ast\get_kind_name() [tests/get_kind_name.phpt]
ast\get_supported_versions() function [tests/get_supported_versions.phpt]
Magic constants [tests/magic_constants.phpt]
AST metadata [tests/metadata.phpt]
Mixed types in PHP 8.0 [tests/mixed_type.phpt]
Multi catch [tests/multi_catch.phpt]
Name nodes [tests/name_node.phpt]
Named child nodes [tests/named_children.phpt]
Nested statement lists [tests/nested_stmt_lists.phpt]
'never' return type parsing [tests/never_return_type.phpt]
Nop statements [tests/nop_statements.phpt]
Nullable types [tests/nullable_types.phpt]
The object type is recognized [tests/object_type.phpt]
Function parameters [tests/params.phpt]
ast\parse_code() throwing a ParseError [tests/parse_code_parse_error.phpt]
ast\parse_file() on valid file [tests/parse_file.phpt]
ast\parse_file() on file that does not exist [tests/parse_file_not_existing.phpt]
ast\parse_file() on file with parse error [tests/parse_file_parse_error.phpt]
Class properties in AST version 70 (php 7.0+) [tests/php74_ordinary_class.phpt]
Final class constants [tests/php81_final_class_const.phpt]
Doc comments on properties [tests/prop_doc_comments.phpt]
Statement list normalization [tests/stmt_list.phpt]
'true' type parsing [tests/true_type.phpt]
try / catch / finally [tests/try_catch_finally.phpt]
Type hints [tests/type_hints.phpt]
Convert unary ops AST_(SILENCE|UNARY_(PLUS|MINUS)) to flags of ZEND_AST_UNARY_OP [tests/unary_ops.phpt]
Test parse and dump of use declarations [tests/use_declarations.phpt]
Version errors [tests/version_errors.phpt]
zpp failures throw TypeError [tests/zpp_errors.phpt]
=====================================================================


make: *** [Makefile:135: test] Error 1
==> ERROR: A failure occurred in check().
    Aborting...
:: Unable to build php-ast - makepkg exited with code: 4

leo980 commented on 2021-03-29 14:45 (UTC)

reply to [flavius] and [lonaowna]:

I'm the new maintainer of this package.

Patches are applied for PHP 8 compatibility. Try rebuild and it would not throw any error if everything goes well.

flavius commented on 2021-03-17 07:19 (UTC) (edited on 2021-03-17 07:19 (UTC) by flavius)

Compilation error with php8:

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
/bin/sh /home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/libtool --mode=compile cc -I. -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5 -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/include -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/main -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt    -c /home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/ast.c -o ast.lo 
mkdir .libs
 cc -I. -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5 -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/include -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/main -I/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c /home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/ast.c  -fPIC -DPIC -o .libs/ast.o
/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/ast.c: In function ‘get_ast’:
/home/flav/.cache/rua/build/php-ast/src/php-ast-1.0.5/ast.c:310:6: error: void value not ignored as it ought to be
  310 |  if (zend_prepare_string_for_scanning(&code_zv, filename) == SUCCESS) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:208: ast.lo] Error 1
==> ERROR: A failure occurred in build().
Aborting...

Build failed with exit code 4 in /home/flav/.cache/rua/build/php-ast

lonaowna commented on 2021-01-18 18:32 (UTC)

Please update: 1.0.5 is not compatible with PHP 8 (currently in [testing]).

atriix commented on 2016-03-20 02:39 (UTC)

==> ERROR: license should be an array ==> ERROR: Makepkg was unable to build php-ast.

aaronjameslang commented on 2016-01-05 12:28 (UTC)

Please change dependency to extra/php as this is now 7. Thanks