php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76522 Compilation error on PHP 7.3
Submitted: 2018-06-23 16:31 UTC Modified: 2018-11-13 03:03 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: peterkokot at gmail dot com Assigned: bd808 (profile)
Status: Closed Package: yaml (PECL)
PHP Version: 7.3.0alpha2 OS: Alpine 3.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: peterkokot at gmail dot com
New email:
PHP Version: OS:

 

 [2018-06-23 16:31 UTC] peterkokot at gmail dot com
Description:
------------
When building yaml extension error happens and doesn't successfully compile.


Test script:
---------------
phpize && ./configure && make

Expected result:
----------------
Compilation without warnings or errors.

Actual result:
--------------
/opt/yaml-2.0.2/emit.c:176:6: warning: implicit declaration of function 'ZEND_HASH_APPLY_PROTECTION' [-Wimplicit-function-declaration]
  if (ZEND_HASH_APPLY_PROTECTION(ht) && ht->u.v.nApplyCount > 0) {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/yaml-2.0.2/emit.c:176:47: error: 'struct <anonymous>' has no member named 'nApplyCount'
  if (ZEND_HASH_APPLY_PROTECTION(ht) && ht->u.v.nApplyCount > 0) {
                                               ^
/opt/yaml-2.0.2/emit.c:186:10: error: 'struct <anonymous>' has no member named 'nApplyCount'
   ht->u.v.nApplyCount++;
          ^
/opt/yaml-2.0.2/emit.c:194:10: error: 'struct <anonymous>' has no member named 'nApplyCount'
   ht->u.v.nApplyCount--;
          ^
/opt/yaml-2.0.2/emit.c: In function 'y_write_array':
/opt/yaml-2.0.2/emit.c:498:48: error: 'struct <anonymous>' has no member named 'nApplyCount'
   if (ZEND_HASH_APPLY_PROTECTION(ht) && ht->u.v.nApplyCount > 1) {
                                                ^
/opt/yaml-2.0.2/emit.c:561:15: error: 'struct <anonymous>' has no member named 'nApplyCount'
    tmp_ht->u.v.nApplyCount++;
               ^
/opt/yaml-2.0.2/emit.c:567:15: error: 'struct <anonymous>' has no member named 'nApplyCount'
    tmp_ht->u.v.nApplyCount--;
               ^
make: *** [Makefile:198: emit.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-02 16:49 UTC] peterkokot at gmail dot com
Pull request thanks to dktapps Dylan K. Taylor:
https://github.com/php/pecl-file_formats-yaml/pull/32
 [2018-08-01 07:15 UTC] ryan at association dot drupal dot org
Is a 2.0.3 release likely anytime soon? 

php created the 7.3 branch today, which means we've started to incorporate 7.3 into our testing matrix for the drupal project, so we can catch issues in advance of the 7.3 release.

Some of our tests rely on the yaml extension to run, but our docker container build process is currently limited to doing a pecl install of extensions.

If 2.0.3 isnt slated for a while, I can probably work around and build it from the php7 branch, or we can disable whatever tests are dependent upon that extension existing.
 [2018-09-23 12:48 UTC] cmb@php.net
-Assigned To: +Assigned To: bd808
 [2018-09-23 12:48 UTC] cmb@php.net
Bryan, any estimates regarding yaml 2.0.3?
 [2018-11-13 03:03 UTC] bd808@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Dec 10 09:01:25 2018 UTC