Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php version 5.3.3 问题 #7

Open
soooldier opened this issue Apr 18, 2013 · 4 comments
Open

php version 5.3.3 问题 #7

soooldier opened this issue Apr 18, 2013 · 4 comments

Comments

@soooldier
Copy link

环境:php version 5.3.3

PECL下载版本1.2.2 出现 Issue #6 问题,而后直接从github下载make出错

[tangyi@jiajutest php-taint]$ sudo make && makeinstall
[sudo] password for tangyi:
/bin/sh /home/tangyi/src/php-taint/libtool --mode=compile cc  -I. -I/home/tangyi/src/php-taint -DPHP_ATOM_INC -I/home/tangyi/src/php-taint/include -I/home/tangyi/src/php-taint/main -I/home/tangyi/src/php-taint -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 /home/tangyi/src/php-taint/taint.c -o taint.lo
 cc -I. -I/home/tangyi/src/php-taint -DPHP_ATOM_INC -I/home/tangyi/src/php-taint/include -I/home/tangyi/src/php-taint/main -I/home/tangyi/src/php-taint -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 /home/tangyi/src/php-taint/taint.c  -fPIC -DPIC -o .libs/taint.o
/home/tangyi/src/php-taint/taint.c: In function ‘php_taint_fetch_dimension_address’:
/home/tangyi/src/php-taint/taint.c:892: error: ‘zval’ has no member named ‘refcount’
/home/tangyi/src/php-taint/taint.c:892: error: ‘zval’ has no member named ‘is_ref’
/home/tangyi/src/php-taint/taint.c: In function ‘php_taint_binary_assign_op_obj_helper’:
/home/tangyi/src/php-taint/taint.c:1057: error: ‘zval’ has no member named ‘refcount’
/home/tangyi/src/php-taint/taint.c:1057: error: ‘zval’ has no member named ‘is_ref’
/home/tangyi/src/php-taint/taint.c: In function ‘zif_taint_strval’:
/home/tangyi/src/php-taint/taint.c:2248: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/local//include/php/Zend/zend_API.h:224)
make: *** [taint.lo] Error 1
@TopCaver
Copy link

试试参照 Issus #6 改一下php_taint.h里面的INIT_PZVAL_COPY

#ifndef INIT_PZVAL_COPY
#define INIT_PZVAL_COPY(z,v) \
    (z)->value = (v)->value; \
    Z_TYPE_P(z) = Z_TYPE_P(v); \
    Z_SET_REFCOUNT(z,1); \
    Z_UNSET_ISREF_P(z);
#endif

@laruence
Copy link
Owner

你试试pecl install taint

@soooldier
Copy link
Author

pecl install 的方法报错和 Issue #6 一样。

@soooldier
Copy link
Author

参考@TopCaver 提供的方法安装成功。感谢感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants