|  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-06-23 22:46 UTC
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:
Status: Open Package: yaml (PECL)
PHP Version: 7.3.0alpha2 OS: Alpine 3.7
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
49 + 3 = ?
Subscribe to this entry?

 [2018-06-23 16:31 UTC] peterkokot at gmail dot com
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'
/opt/yaml-2.0.2/emit.c:194:10: error: 'struct <anonymous>' has no member named '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'
/opt/yaml-2.0.2/emit.c:567:15: error: 'struct <anonymous>' has no member named 'nApplyCount'
make: *** [Makefile:198: emit.lo] Error 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-02 16:49 UTC] peterkokot at gmail dot com
Pull request thanks to dktapps Dylan K. Taylor:
 [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.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sat Sep 22 05:01:25 2018 UTC