php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: herbert at groot dot jebbink dot nl
New email:
PHP Version: OS:

 

 [2021-07-25 10:41 UTC] herbert at groot dot jebbink dot nl
Description:
------------
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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-25 10:47 UTC] cmb@php.net
This would apparently be fixed with
<https://github.com/php/pecl-file_formats-yaml/pull/60>.
 [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-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 13:01:28 2025 UTC