|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76820 Z_COPYABLE invalid definition
Submitted: 2018-08-30 15:24 UTC Modified: 2018-08-30 15:49 UTC
From: mvdwerve at outlook dot com Assigned: cmb (profile)
Status: Closed Package: *General Issues
PHP Version: master-Git-2018-08-30 (Git) OS: All
Private report: No CVE-ID: None
 [2018-08-30 15:24 UTC] mvdwerve at outlook dot com
As of commit 742d5a01ed5bd39a18929c04a5f5c5596a4b005b, IS_TYPE_COPYABLE was apparantly removed. We use that in our wrapper of the Zend engine. Although it is deprecated, a good definition should be provided, right?

Currently, it simply doesn't compile when you use the macro and don't include an _extra_ closing bracket, as this is the current definition in master:

#define Z_COPYABLE(zval)			((Z_TYPE(zval) == IS_ARRAY)

where it should be 

#define Z_COPYABLE(zval)			(Z_TYPE(zval) == IS_ARRAY)


definition_fix (last revision 2018-08-30 15:24 UTC by mvdwerve at outlook dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-30 15:49 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2018-08-30 15:49 UTC]
 [2018-08-30 16:02 UTC]
Automatic comment on behalf of
Log: Fix #76820: Z_COPYABLE invalid definition
 [2018-08-30 16:02 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 11:01:26 2023 UTC