php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78431 Error When building Taint Extension on Windows
Submitted: 2019-08-20 20:18 UTC Modified: 2019-09-01 04:22 UTC
From: brayzen dot cybersec at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: taint (PECL)
PHP Version: 7.1Git-2019-08-20 (Git) OS: Windows 10
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:
MUST BE VALID
Solve the problem:
49 + 2 = ?
Subscribe to this entry?

 
 [2019-08-20 20:18 UTC] brayzen dot cybersec at gmail dot com
Description:
------------
When building the taint extension on windows, I receive errors about 'get' not being a member of zend_object_handlers when running nmake. This is preventing me from being able to build the extension on my machine. Attached is my output when attempting to build.

Test script:
---------------
nmake

Expected result:
----------------
Build Successful.

Actual result:
--------------
..\PECL\taint-master\taint.c(340): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_object *'
..\PECL\taint-master\taint.c(416): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_object *'
..\PECL\taint-master\taint.c(416): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_string *'
..\PECL\taint-master\taint.c(421): error C2039: 'get': is not a member of '_zend_object_handlers'
c:\php-sdk\php-7.1.10-src\vc14\x64\php-7.1.10-src\zend\zend_object_handlers.h(144): note: see declaration of '_zend_object_handlers'
..\PECL\taint-master\taint.c(423): error C2039: 'get': is not a member of '_zend_object_handlers'
c:\php-sdk\php-7.1.10-src\vc14\x64\php-7.1.10-src\zend\zend_object_handlers.h(144): note: see declaration of '_zend_object_handlers'
..\PECL\taint-master\taint.c(439): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_object *'
..\PECL\taint-master\taint.c(439): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_string *'
..\PECL\taint-master\taint.c(463): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_object *'
..\PECL\taint-master\taint.c(465): error C2039: 'get': is not a member of '_zend_object_handlers'
c:\php-sdk\php-7.1.10-src\vc14\x64\php-7.1.10-src\zend\zend_object_handlers.h(144): note: see declaration of '_zend_object_handlers'
..\PECL\taint-master\taint.c(467): error C2039: 'get': is not a member of '_zend_object_handlers'
c:\php-sdk\php-7.1.10-src\vc14\x64\php-7.1.10-src\zend\zend_object_handlers.h(144): note: see declaration of '_zend_object_handlers'
..\PECL\taint-master\taint.c(483): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_object *'
..\PECL\taint-master\taint.c(721): warning C4018: '<=': signed/unsigned mismatch
..\PECL\taint-master\taint.c(731): warning C4018: '<=': signed/unsigned mismatch
..\PECL\taint-master\taint.c(857): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_object *'
..\PECL\taint-master\taint.c(857): warning C4133: 'function': incompatible types - from 'zval *' to 'zend_string *'
..\PECL\taint-master\taint.c(1037): warning C4018: '<': signed/unsigned mismatch
..\PECL\taint-master\taint.c(1201): error C2065: 'ZEND_ASSIGN_CONCAT': undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe"' : return code '0x2'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-23 14:31 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-08-23 14:31 UTC] cmb@php.net
Hmm, I cannot reproduce the build failure, and actually the error
messages look rather fishy, , for instance, get is a member of
_zend_object_handlers, but line 144 is about get_method[1]. Please
double-check that you have a good checkout.  Also note, that
active support for PHP 7.1 has ended[2], and that there are
ready-to-use taint DLLs available[3].

[1] <https://github.com/php/php-src/blob/PHP-7.1/Zend/zend_object_handlers.h#L144>
[2] <https://www.php.net/supported-versions.php>
[3] <https://pecl.php.net/package/taint/2.0.5/windows>
 [2019-09-01 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Jan 16 11:03:34 2022 UTC