laruence / taint

Taint is a PHP extension, used for detecting XSS codes
Other
611 stars 128 forks source link

php version 5.3.3 问题 #7

Open soooldier opened 11 years ago

soooldier commented 11 years ago

环境: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 commented 11 years ago

试试参照 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 commented 11 years ago

你试试pecl install taint

soooldier commented 11 years ago

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

soooldier commented 11 years ago

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