|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81288 installing pecl/yaml fails
Submitted: 2021-07-25 10:41 UTC Modified: 2021-07-25 11:26 UTC
From: herbert at groot dot jebbink dot nl Assigned:
Status: Closed Package: yaml (PECL)
PHP Version: 8.1.0beta1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
4 + 32 = ?
Subscribe to this entry?

 [2021-07-25 10:41 UTC] herbert at groot dot jebbink dot nl
Compiling yaml from PECL fails, it did work earlier with the same pecl/yaml version 2.2.1 in the 8.1 cycle

cc -I. -I/tmp/pear/temp/yaml -I/tmp/pear/temp/pear-build-root8R4Yon/yaml-2.2.1/include -I/tmp/pear/temp/pear-build-root8R4Yon/yaml-2.2.1/main -I/tmp/pear/temp/yaml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yaml/detect.c -MMD -MF detect.dep -MT detect.lo  -fPIC -DPIC -o .libs/detect.o
/tmp/pear/temp/yaml/detect.c: In function ‘scalar_is_numeric’:
/tmp/pear/temp/yaml/detect.c:545:24: error: macro "ZEND_ATOL" passed 2 arguments, but takes just 1
  545 |    ZEND_ATOL(*lval, buf);
      |                        ^
In file included from /usr/local/include/php/Zend/zend_range_check.h:22,
                 from /usr/local/include/php/Zend/zend_portability.h:74,
                 from /usr/local/include/php/Zend/zend_types.h:25,
                 from /usr/local/include/php/Zend/zend.h:27,
                 from /usr/local/include/php/main/php.h:31,
                 from /tmp/pear/temp/yaml/php_yaml.h:46,
                 from /tmp/pear/temp/yaml/detect.c:36:
/usr/local/include/php/Zend/zend_long.h:76: note: macro "ZEND_ATOL" defined here
   76 | #  define ZEND_ATOL(s) atoll((s))
/tmp/pear/temp/yaml/detect.c:545:4: error: ‘ZEND_ATOL’ undeclared (first use in this function); did you mean ‘ZEND_AST_OR’?
  545 |    ZEND_ATOL(*lval, buf);
      |    ^~~~~~~~~
      |    ZEND_AST_OR
/tmp/pear/temp/yaml/detect.c:545:4: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:212: detect.lo] Error 1
ERROR: `make' failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-25 10:47 UTC]
This would apparently be fixed with
 [2021-07-25 11:26 UTC] herbert at groot dot jebbink dot nl
-Status: Open +Status: Closed
 [2021-07-25 11:26 UTC] herbert at groot dot jebbink dot nl
Ok, thanks for the link
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 21:05:46 2022 UTC