taint icon indicating copy to clipboard operation
taint copied to clipboard

php version 5.3.3 问题

Open soooldier opened this issue 11 years ago • 4 comments

环境: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

soooldier avatar Apr 18 '13 08:04 soooldier

试试参照 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

TopCaver avatar Apr 23 '13 09:04 TopCaver

你试试pecl install taint

laruence avatar Apr 24 '13 02:04 laruence

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

soooldier avatar Apr 25 '13 03:04 soooldier

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

soooldier avatar Apr 25 '13 03:04 soooldier