laruence / taint

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

make error at php5.5.9 ubuntu 14.04LTS #41

Closed 0x554simon closed 5 years ago

0x554simon commented 7 years ago

Error message: In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:60:3: error: #error "Unsupported PHP Version ID:" PHP_VERSION_ID

error "Unsupported PHP Version ID:" PHP_VERSION_ID

^ In file included from /usr/include/php5/main/php.h:35:0, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_make_real_object': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:116:36: error: 'IS_FALSE' undeclared (first use in this function) if (EXPECTED(Z_TYPE_P(object) <= IS_FALSE)) { ^ /usr/include/php5/Zend/zend.h:389:49: note: in definition of macro 'EXPECTED'

define EXPECTED(condition) __builtin_expect(condition, 1)

                                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:116:36: note: each undeclared identifier is reported only once for each function it appears in if (EXPECTED(Z_TYPE_P(object) <= IS_FALSE)) { ^ /usr/include/php5/Zend/zend.h:389:49: note: in definition of macro 'EXPECTED'

define EXPECTED(condition) __builtin_expect(condition, 1)

                                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: At top level: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:130:1: error: unknown type name 'zend_long' static zend_long php_taint_check_string_offset(zval dim, int type) / {{{ / { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_check_string_offset': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:131:2: error: unknown type name 'zend_long' zend_long offset; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:146:9: error: 'IS_FALSE' undeclared (first use in this function) case IS_FALSE: ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:147:9: error: 'IS_TRUE' undeclared (first use in this function) case IS_TRUE: ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:150:9: error: 'IS_REFERENCE' undeclared (first use in this function) case IS_REFERENCE: ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:151:9: warning: assignment makes pointer from integer without a cast [enabled by default] dim = Z_REFVAL_P(dim); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_fetch_dimension_address_inner': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:169:2: error: unknown type name 'zend_string' zend_string offset_key; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:176:3: error: too few arguments to function 'zend_hash_index_find' retval = zend_hash_index_find(ht, hval); ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_hash.h:166:14: note: declared here ZEND_API int zend_hash_index_find(const HashTable *ht, ulong h, void pData); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:180:47: error: expected ')' before 'ZEND_LONG_FMT' zend_error(E_NOTICE,"Undefined offset: " ZEND_LONG_FMT, hval); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:187:47: error: expected ')' before 'ZEND_LONG_FMT' zend_error(E_NOTICE,"Undefined offset: " ZEND_LONG_FMT, hval); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:190:13: warning: assignment makes pointer from integer without a cast [enabled by default] retval = zend_hash_index_add_new(ht, hval, &EG(uninitialized_zval)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:195:14: warning: assignment makes pointer from integer without a cast [enabled by default] offset_key = Z_STR_P(dim); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:197:44: error: macro "ZEND_HANDLE_NUMERIC" requires 3 arguments, but only 2 given if (ZEND_HANDLE_NUMERIC(offset_key, hval)) { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:197:8: error: 'ZEND_HANDLE_NUMERIC' undeclared (first use in this function) if (ZEND_HANDLE_NUMERIC(offset_key, hval)) { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:202:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] retval = zend_hash_find(ht, offset_key); ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_hash.h:164:14: note: expected 'const char ' but argument is of type 'int ' ZEND_API int zend_hash_find(const HashTable ht, const char arKey, uint nKeyLength, void pData); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:202:3: error: too few arguments to function 'zend_hash_find' retval = zend_hash_find(ht, offset_key); ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_hash.h:164:14: note: declared here ZEND_API int zend_hash_find(const HashTable ht, const char arKey, uint nKeyLength, void **pData); ^ In file included from /usr/include/php5/main/php.h:35:0, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:205:39: error: 'IS_INDIRECT' undeclared (first use in this function) if (UNEXPECTED(Z_TYPE_P(retval) == IS_INDIRECT)) { ^ /usr/include/php5/Zend/zend.h:390:49: note: in definition of macro 'UNEXPECTED'

define UNEXPECTED(condition) __builtin_expect(condition, 0)

                                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:206:12: warning: assignment makes pointer from integer without a cast [enabled by default] retval = Z_INDIRECT_P(retval); ^ In file included from /usr/include/php5/main/php.h:35:0, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:207:40: error: 'IS_UNDEF' undeclared (first use in this function) if (UNEXPECTED(Z_TYPE_P(retval) == IS_UNDEF)) { ^ /usr/include/php5/Zend/zend.h:390:49: note: in definition of macro 'UNEXPECTED'

define UNEXPECTED(condition) __builtin_expect(condition, 0)

                                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:210:8: warning: format '%s' expects argument of type 'char ', but argument 3 has type 'int' [-Wformat=] zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset_key)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:217:8: warning: format '%s' expects argument of type 'char ', but argument 3 has type 'int' [-Wformat=] zend_error(E_NOTICE,"Undefined index: %s", ZSTR_VAL(offset_key)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:228:6: warning: format '%s' expects argument of type 'char ', but argument 3 has type 'int' [-Wformat=] zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset_key)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:235:6: warning: format '%s' expects argument of type 'char ', but argument 3 has type 'int' [-Wformat=] zend_error(E_NOTICE,"Undefined index: %s", ZSTR_VAL(offset_key)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:238:13: warning: assignment makes pointer from integer without a cast [enabled by default] retval = zend_hash_add_new(ht, offset_key, &EG(uninitialized_zval)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:245:16: warning: assignment makes pointer from integer without a cast [enabled by default] offset_key = ZSTR_EMPTY_ALLOC(); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:251:5: warning: format '%p' expects argument of type 'void ', but argument 3 has type 'int' [-Wformat=] zend_error(E_NOTICE, "Resource ID#%pd used as offset, casting to integer (%pd)", Z_RES_HANDLE_P(dim), Z_RES_HANDLE_P(dim)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:251:5: warning: format '%p' expects argument of type 'void ', but argument 4 has type 'int' [-Wformat=] /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:254:9: error: 'IS_FALSE' undeclared (first use in this function) case IS_FALSE: ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:257:9: error: 'IS_TRUE' undeclared (first use in this function) case IS_TRUE: ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:260:9: error: 'IS_REFERENCE' undeclared (first use in this function) case IS_REFERENCE: ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:261:9: warning: assignment makes pointer from integer without a cast [enabled by default] dim = Z_REFVAL_P(dim); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_fetch_dimension_address': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:286:87: error: macro "zend_hash_next_index_insert" requires 4 arguments, but only 2 given retval = zend_hash_next_index_insert(Z_ARRVAL_P(container), &EG(uninitialized_zval)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:286:13: error: 'zend_hash_next_index_insert' undeclared (first use in this function) retval = zend_hash_next_index_insert(Z_ARRVAL_P(container), &EG(uninitialized_zval)); ^ In file included from /usr/include/php5/main/php.h:35:0, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:301:45: error: 'IS_REFERENCE' undeclared (first use in this function) } else if (EXPECTED(Z_TYPE_P(container) == IS_REFERENCE)) { ^ /usr/include/php5/Zend/zend.h:389:49: note: in definition of macro 'EXPECTED'

define EXPECTED(condition) __builtin_expect(condition, 1)

                                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:302:13: warning: assignment makes pointer from integer without a cast [enabled by default] container = Z_REFVAL_P(container); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:340:4: error: too many arguments to function 'container->value.obj.handlers->read_dimension' retval = Z_OBJ_HT_P(container)->read_dimension(container, dim, type, result); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:346:5: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] zend_error(E_NOTICE, "Indirect modification of overloaded element of %s has no effect", ZSTR_VAL(ce->name)); ^ In file included from /usr/include/php5/main/php.h:35:0, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:347:54: error: 'IS_UNDEF' undeclared (first use in this function) } else if (EXPECTED(retval && Z_TYPE_P(retval) != IS_UNDEF)) { ^ /usr/include/php5/Zend/zend.h:389:49: note: in definition of macro 'EXPECTED'

define EXPECTED(condition) __builtin_expect(condition, 1)

                                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:362:7: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] zend_error(E_NOTICE, "Indirect modification of overloaded element of %s has no effect", ZSTR_VAL(ce->name)); ^ In file included from /usr/include/php5/main/php.h:35:0, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:378:45: error: 'IS_FALSE' undeclared (first use in this function) } else if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) { ^ /usr/include/php5/Zend/zend.h:389:49: note: in definition of macro 'EXPECTED'

define EXPECTED(condition) __builtin_expect(condition, 1)

                                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_assign_op_overloaded_property': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:416:3: warning: passing argument 4 of 'obj.value.obj.handlers->read_property' from incompatible pointer type [enabled by default] (z = Z_OBJ_HT(obj)->read_property(&obj, property, BP_VAR_R, cache_slot, &rv)) != NULL) { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:416:3: note: expected 'const struct _zend_literal *' but argument is of type 'void ' /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:416:3: error: too many arguments to function 'obj.value.obj.handlers->read_property' /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:423:4: error: too many arguments to function 'z->value.obj.handlers->get' zval *value = Z_OBJ_HT_P(z)->get(z, &rv2); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:426:5: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&rv); ^ In file included from /usr/include/php5/Zend/zend.h:841:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_variables.h:51:15: note: expected 'struct zval *' but argument is of type 'struct zval ' ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:439:3: warning: passing argument 4 of 'obj.value.obj.handlers->write_property' from incompatible pointer type [enabled by default] Z_OBJ_HT(obj)->write_property(&obj, property, z, cache_slot); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:439:3: note: expected 'const struct _zend_literal *' but argument is of type 'void **' In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:444:4: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(z)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:446:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(zptr); ^ In file included from /usr/include/php5/Zend/zend.h:841:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_variables.h:51:15: note: expected 'struct zval ' but argument is of type 'struct zval *' ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_binary_assign_op_obj_dim': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:463:3: error: too many arguments to function 'object->value.obj.handlers->read_dimension' (z = Z_OBJ_HT_P(object)->read_dimension(object, property, BP_VAR_R, &rv)) != NULL) { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:467:4: error: too many arguments to function 'z->value.obj.handlers->get' zval value = Z_OBJ_HT_P(z)->get(z, &rv2); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:470:5: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&rv); ^ In file included from /usr/include/php5/Zend/zend.h:841:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_variables.h:51:15: note: expected 'struct zval ' but argument is of type 'struct zval *' ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:475:20: error: 'IS_REFERENCE' undeclared (first use in this function) (Z_TYPE_P(z) == IS_REFERENCE && IS_STRING == Z_TYPE_P(Z_REFVAL_P(z)) && ^ In file included from /usr/include/php5/Zend/zend.h:840:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_operators.h:486:33: error: invalid type argument of unary '' (have 'int')

define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)

                             ^

/usr/include/php5/Zend/zend_operators.h:485:24: note: in definition of macro 'Z_TYPE'

define Z_TYPE(zval) (zval).type

                    ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:475:49: note: in expansion of macro 'Z_TYPE_P' (Z_TYPE_P(z) == IS_REFERENCE && IS_STRING == Z_TYPE_P(Z_REFVAL_P(z)) && ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:482:48: warning: pointer/integer type mismatch in conditional expression [enabled by default] binary_op(&res, Z_ISREF_P(z) ? Z_REFVAL_P(z) : z, value); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:485:4: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&rv); ^ In file included from /usr/include/php5/Zend/zend.h:841:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_variables.h:51:15: note: expected 'struct zval *' but argument is of type 'struct zval ' ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC); ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:491:4: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR(res)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:493:3: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor(&res); ^ In file included from /usr/include/php5/Zend/zend.h:841:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_variables.h:51:15: note: expected 'struct zval *' but argument is of type 'struct zval ' ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: At top level: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:504:36: error: unknown type name 'zend_array' static void php_taint_mark_strings(zend_array symbol_table) / {{{ / { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:516:77: error: unknown type name 'uint32_t' static zval php_taint_get_zval_ptr_tmpvar(zend_execute_data execute_data, uint32_t var, zend_free_op should_free) / {{{ / { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:532:73: error: unknown type name 'uint32_t' static zval php_taint_get_zval_ptr_cv(zend_execute_data execute_data, uint32_t var, int type, int force_ret) / {{{ / { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_get_zval_ptr': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:562:3: warning: return makes pointer from integer without a cast [enabled by default] return php_taint_get_zval_ptr_tmpvar(execute_data, op.var, should_free); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:566:4: warning: return makes pointer from integer without a cast [enabled by default] return EX_CONSTANT(op); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:568:4: warning: return makes pointer from integer without a cast [enabled by default] return php_taint_get_zval_ptr_cv(execute_data, op.var, type, force_ret); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: At top level: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:576:78: error: unknown type name 'uint32_t' static zval php_taint_get_zval_ptr_ptr_var(zend_execute_data execute_data, uint32_t var, zend_free_op should_free) / {{{ / { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_get_zval_ptr_ptr': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:592:3: warning: return makes pointer from integer without a cast [enabled by default] return php_taint_get_zval_ptr_cv(execute_data, op.var, type, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:595:3: warning: return makes pointer from integer without a cast [enabled by default] return php_taint_get_zval_ptr_ptr_var(execute_data, op.var, should_free); ^ In file included from /usr/include/php5/Zend/zend_modules.h:26:0, from /usr/include/php5/Zend/zend_API.h:26, from /usr/include/php5/main/php.h:39, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_compile.h:402:33: error: request for member 'This' in something not a structure or union

define EX(element) execute_data.element

                             ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:598:11: note: in expansion of macro 'EX' return &EX(This); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_error': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:613:2: warning: format not a string literal and no format arguments [-Wformat-security] zend_error(TAINT_G(error_level), msg); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_init_dynamic_fcall_handler': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:663:4: error: too few arguments to function 'zend_hash_index_find' zval cname = zend_hash_index_find(Z_ARRVAL_P(op2), 0); ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_hash.h:166:14: note: declared here ZEND_API int zend_hash_index_find(const HashTable ht, ulong h, void pData); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:664:4: error: too few arguments to function 'zend_hash_index_find' zval mname = zend_hash_index_find(Z_ARRVAL_P(op2), 0); ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_hash.h:166:14: note: declared here ZEND_API int zend_hash_index_find(const HashTable ht, ulong h, void pData); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_rope_handler': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:710:2: error: unknown type name 'zend_string' zend_string rope; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:715:10: error: 'zend_string' undeclared (first use in this function) rope = (zend_string )EX_VAR(opline->op1.var); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:715:24: error: expected expression before ')' token rope = (zend_string *)EX_VAR(opline->op1.var); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:717:9: warning: assignment makes pointer from integer without a cast [enabled by default] result = EX_VAR(opline->result.var); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:719:31: warning: assignment makes pointer from integer without a cast [enabled by default] rope[opline->extended_value] = zval_get_string(op2); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:732:3: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(target, ZSTR_VAL(rope[i]), ZSTR_LEN(rope[i])); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from /usr/include/php5/main/php_config.h:2418, from /usr/include/php5/main/php.h:33, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'const void restrict' but argument is of type 'int' NTH (memcpy (void *restrict dest, const void *restrict __src, ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:739:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(result)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_concat_handler': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:756:9: warning: assignment makes pointer from integer without a cast [enabled by default] result = EX_VAR(opline->result.var); ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:766:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(result)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_binary_assign_op_helper': /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:807:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(var_ptr)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_binary_assign_op_obj_helper': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:834:55: warning: comparison between pointer and integer [enabled by default] if (opline->op1_type == IS_UNUSED && Z_OBJ_P(object) == NULL) { ^ In file included from /usr/include/php5/Zend/zend.h:840:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_operators.h:486:33: error: invalid type argument of unary '*' (have 'int')

define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)

                             ^

/usr/include/php5/Zend/zend_operators.h:485:24: note: in definition of macro 'Z_TYPE'

define Z_TYPE(zval) (zval).type

                    ^

/usr/include/php5/Zend/zend_API.h:559:3: note: in expansion of macro 'Z_TYPE_P' Z_TYPE_P(z) = IS_NULL; \ ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:848:6: note: in expansion of macro 'ZVAL_NULL' ZVAL_NULL(EX_VAR(opline->result.var)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:857:17: warning: assignment from incompatible pointer type [enabled by default] && (var_ptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, NULL)) != NULL) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:873:5: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(var_ptr)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:876:4: warning: passing argument 6 of 'php_taint_assign_op_overloaded_property' makes pointer from integer without a cast [enabled by default] php_taint_assign_op_overloaded_property(object, property, NULL, value, binary_op, EX_VAR(opline->result.var)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:407:13: note: expected 'struct zval ' but argument is of type 'int' static void php_taint_assign_op_overloaded_property(zval object, zval *property, void *cache_slot, zval value, binary_op_type binary_op, zval result) / {{{ / { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_binary_assign_op_dim_helper': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:905:58: warning: comparison between pointer and integer [enabled by default] if (opline->op1_type == IS_UNUSED && Z_OBJ_P(container) == NULL) { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:917:4: warning: passing argument 4 of 'php_taint_binary_assign_op_obj_dim' makes pointer from integer without a cast [enabled by default] php_taint_binary_assign_op_obj_dim(container, dim, value, EX_VAR(opline->result.var), binary_op); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:457:13: note: expected 'struct zval ' but argument is of type 'int' static void php_taint_binary_assign_op_obj_dim(zval object, zval property, zval value, zval retval, binary_op_type binary_op) / {{{ / { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:928:11: warning: assignment makes pointer from integer without a cast [enabled by default] var_ptr = Z_INDIRECT(rv); ^ In file included from /usr/include/php5/Zend/zend.h:840:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_operators.h:486:33: error: invalid type argument of unary '*' (have 'int')

define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)

                             ^

/usr/include/php5/Zend/zend_operators.h:485:24: note: in definition of macro 'Z_TYPE'

define Z_TYPE(zval) (zval).type

                    ^

/usr/include/php5/Zend/zend_API.h:559:3: note: in expansion of macro 'Z_TYPE_P' Z_TYPE_P(z) = IS_NULL; \ ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:947:5: note: in expansion of macro 'ZVAL_NULL' ZVAL_NULL(EX_VAR(opline->result.var)); ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:966:5: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(var_ptr)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_fcall_check': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1007:24: warning: initialization makes pointer from integer without a cast [enabled by default] const char fname = ZSTR_VAL(fbc->common.function_name); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1010:15: warning: initialization makes pointer from integer without a cast [enabled by default] zval p = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1018:15: warning: initialization makes pointer from integer without a cast [enabled by default] zval p = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1026:15: warning: initialization makes pointer from integer without a cast [enabled by default] zval p = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1036:15: warning: initialization makes pointer from integer without a cast [enabled by default] zval p = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1044:15: warning: initialization makes pointer from integer without a cast [enabled by default] zval p = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1053:6: error: unknown type name 'uint32_t' uint32_t i; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1055:17: warning: initialization makes pointer from integer without a cast [enabled by default] zval p = ZEND_CALL_ARG(ex, i + 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1067:6: error: unknown type name 'zend_string' zend_string key; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1068:6: error: unknown type name 'zend_long' zend_long idx; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1069:22: warning: initialization makes pointer from integer without a cast [enabled by default] zval val, p = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1074:62: error: expected ';' before '{' token ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(p), idx, key, val) { ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1093:9: warning: assignment makes pointer from integer without a cast [enabled by default] fp = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1094:10: warning: assignment makes pointer from integer without a cast [enabled by default] str = ZEND_CALL_ARG(ex, 2); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1111:20: warning: initialization makes pointer from integer without a cast [enabled by default] zval header = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1120:17: warning: initialization makes pointer from integer without a cast [enabled by default] zval str = ZEND_CALL_ARG(ex, 1); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1132:19: warning: initialization makes pointer from integer without a cast [enabled by default] zval query = ZEND_CALL_ARG(ex, arg_count); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1141:18: warning: initialization makes pointer from integer without a cast [enabled by default] zval sql = ZEND_CALL_ARG(ex, 2); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1151:23: warning: initialization makes pointer from integer without a cast [enabled by default] zval callback = ZEND_CALL_ARG(ex, 2); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1157:7: error: too few arguments to function 'zend_hash_index_find' zval cname = zend_hash_index_find(Z_ARRVAL_P(callback), 0); ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_hash.h:166:14: note: declared here ZEND_API int zend_hash_index_find(const HashTable *ht, ulong h, void pData); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1158:7: error: too few arguments to function 'zend_hash_index_find' zval mname = zend_hash_index_find(Z_ARRVAL_P(callback), 0); ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/php5/Zend/zend_hash.h:166:14: note: declared here ZEND_API int zend_hash_index_find(const HashTable ht, ulong h, void pData); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1176:17: warning: initialization makes pointer from integer without a cast [enabled by default] zval cmd = ZEND_CALL_ARG(ex, arg_count); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1187:29: warning: initialization makes pointer from integer without a cast [enabled by default] const char class_name = ZSTR_VAL(fbc->common.scope->name); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1189:24: warning: initialization makes pointer from integer without a cast [enabled by default] const char fname = ZSTR_VAL(fbc->common.function_name); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1194:18: warning: initialization makes pointer from integer without a cast [enabled by default] zval sql = ZEND_CALL_ARG(ex, arg_count); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1206:18: warning: initialization makes pointer from integer without a cast [enabled by default] zval sql = ZEND_CALL_ARG(ex, arg_count); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1218:18: warning: initialization makes pointer from integer without a cast [enabled by default] zval sql = ZEND_CALL_ARG(ex, arg_count); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1230:18: warning: initialization makes pointer from integer without a cast [enabled by default] zval sql = ZEND_CALL_ARG(ex, arg_count); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_fcall_handler': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1245:28: warning: initialization from incompatible pointer type [enabled by default] zend_execute_data call = execute_data->call; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1246:27: error: 'zend_execute_data' has no member named 'func' zend_function *fbc = call->func; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_register_handlers': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1258:31: error: 'ZEND_INIT_USER_CALL' undeclared (first use in this function) zend_set_user_opcode_handler(ZEND_INIT_USER_CALL, php_taint_init_dynamic_fcall_handler); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1259:31: error: 'ZEND_INIT_DYNAMIC_CALL' undeclared (first use in this function) zend_set_user_opcode_handler(ZEND_INIT_DYNAMIC_CALL, php_taint_init_dynamic_fcall_handler); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1262:31: error: 'ZEND_FAST_CONCAT' undeclared (first use in this function) zend_set_user_opcode_handler(ZEND_FAST_CONCAT, php_taint_concat_handler); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1264:31: error: 'ZEND_ROPE_END' undeclared (first use in this function) zend_set_user_opcode_handler(ZEND_ROPE_END, php_taint_rope_handler); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1266:31: error: 'ZEND_DO_ICALL' undeclared (first use in this function) zend_set_user_opcode_handler(ZEND_DO_ICALL, php_taint_fcall_handler); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'php_taint_override_func': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1272:12: warning: assignment makes pointer from integer without a cast [enabled by default] if ((func = zend_hash_str_find_ptr(CG(function_table), name, strlen(name))) != NULL) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_strval': /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1345:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_sprintf': /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1370:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_vsprintf': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1379:2: error: unknown type name 'zend_string' zend_string *format; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1393:48: error: expected ';' before '{' token ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(args), val) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1405:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_explode': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1413:2: error: unknown type name 'zend_string' zend_string str, delim; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1414:2: error: unknown type name 'zend_long' zend_long limit = ZEND_LONG_MAX; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1414:20: error: 'ZEND_LONG_MAX' undeclared (first use in this function) zend_long limit = ZEND_LONG_MAX; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_implode': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1452:50: error: expected ';' before '{' token ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(target), val) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1464:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_trim': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1473:2: error: unknown type name 'zend_string' zend_string str, what; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1487:26: warning: comparison between pointer and integer [enabled by default] Z_STR_P(return_value) != str && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1488:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_rtrim': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1497:2: error: unknown type name 'zend_string' zend_string str, what; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1511:26: warning: comparison between pointer and integer [enabled by default] Z_STR_P(return_value) != str && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1512:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_ltrim': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1521:2: error: unknown type name 'zend_string' zend_string str, what; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1535:26: warning: comparison between pointer and integer [enabled by default] Z_STR_P(return_value) != str && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1536:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_str_replace': /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1561:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_str_pad': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1570:2: error: unknown type name 'zend_string' zend_string input; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1571:2: error: unknown type name 'zend_long' zend_long pad_length; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1572:2: error: unknown type name 'zend_string' zend_string pad_str = NULL; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1573:2: error: unknown type name 'zend_long' zend_long pad_type_val = 1; ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1589:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_strstr': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1599:2: error: unknown type name 'zend_string' zend_string *haystack; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1614:26: warning: comparison between pointer and integer [enabled by default] Z_STR_P(return_value) != haystack && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1615:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_substr': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1624:2: error: unknown type name 'zend_string' zend_string *str; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1625:2: error: unknown type name 'zend_long' zend_long l = 0, f; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1639:26: warning: comparison between pointer and integer [enabled by default] Z_STR_P(return_value) != str && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1640:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_strtolower': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1649:2: error: unknown type name 'zend_string' zend_string *str; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1663:26: warning: comparison between pointer and integer [enabled by default] Z_STR_P(return_value) != str && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1664:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_strtoupper': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1673:2: error: unknown type name 'zend_string' zend_string *str; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1687:26: warning: comparison between pointer and integer [enabled by default] Z_STR_P(return_value) != str && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1688:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_dirname': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1696:2: error: unknown type name 'zend_string' zend_string *str; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1697:2: error: unknown type name 'zend_long' zend_long levels = 1; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1711:29: warning: comparison between pointer and integer [enabled by default] && Z_STR_P(return_value) != str && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1712:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_basename': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1720:2: error: unknown type name 'zend_string' zend_string string, suffix = NULL; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1734:29: warning: comparison between pointer and integer [enabled by default] && Z_STR_P(return_value) != string && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1735:3: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint_pathinfo': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1743:2: error: unknown type name 'zend_string' zend_string *path; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1744:2: error: unknown type name 'zend_long' zend_long opt; ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1759:30: warning: comparison between pointer and integer [enabled by default] if (Z_STR_P(return_value) != path && Z_STRLEN_P(return_value)) { ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1760:5: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(Z_STR_P(return_value)); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'OnUpdateErrorLevel': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1773:3: warning: passing argument 1 of 'atoi' makes pointer from integer without a cast [enabled by default] TAINT_G(error_level) = (int)atoi(ZSTR_VAL(new_value)); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from /usr/include/php5/main/php_config.h:2418, from /usr/include/php5/main/php.h:33, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /usr/include/stdlib.h:278:1: note: expected 'const char ' but argument is of type 'int' __NTH (atoi (const char __nptr)) ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_taint': /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1807:4: error: unknown type name 'zend_string' zend_string str = zend_string_init(Z_STRVAL_P(el), Z_STRLEN_P(el), 0); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1807:23: warning: initialization makes pointer from integer without a cast [enabled by default] zend_string str = zend_string_init(Z_STRVAL_P(el), Z_STRLEN_P(el), 0); ^ In file included from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:30:0: /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:42:43: error: lvalue required as left operand of assignment

define TAINT_MARK(str) (GC_FLAGS((str)) |= IS_STR_TAINT_POSSIBLE)

                                       ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1809:4: note: in expansion of macro 'TAINT_MARK' TAINT_MARK(str); ^ /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zif_untaint': /home/ubuntu/Desktop/taint-taint-2.0.2/php_taint.h:44:45: error: lvalue required as left operand of assignment

define TAINT_CLEAN(str) (GC_FLAGS((str)) &= ~IS_STR_TAINT_POSSIBLE)

                                         ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1838:4: note: in expansion of macro 'TAINT_CLEAN' TAINT_CLEAN(Z_STR_P(el)); ^ In file included from /usr/include/php5/Zend/zend.h:840:0, from /usr/include/php5/main/php.h:35, from /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:23: /home/ubuntu/Desktop/taint-taint-2.0.2/taint.c: In function 'zm_activate_taint': /usr/include/php5/Zend/zend_operators.h:485:29: error: request for member 'type' in something not a structure or union

define Z_TYPE(zval) (zval).type

                         ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1903:6: note: in expansion of macro 'Z_TYPE' if (Z_TYPE(PG(http_globals)[TRACK_VARS_POST]) == IS_ARRAY) { ^ /usr/include/php5/Zend/zend_operators.h:445:32: error: request for member 'value' in something not a structure or union

define Z_ARRVAL(zval) (zval).value.ht

                            ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1904:26: note: in expansion of macro 'Z_ARRVAL' php_taint_mark_strings(Z_ARRVAL(PG(http_globals)[TRACK_VARS_POST])); ^ /usr/include/php5/Zend/zend_operators.h:485:29: error: request for member 'type' in something not a structure or union

define Z_TYPE(zval) (zval).type

                         ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1907:6: note: in expansion of macro 'Z_TYPE' if (Z_TYPE(PG(http_globals)[TRACK_VARS_GET]) == IS_ARRAY) { ^ /usr/include/php5/Zend/zend_operators.h:445:32: error: request for member 'value' in something not a structure or union

define Z_ARRVAL(zval) (zval).value.ht

                            ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1908:26: note: in expansion of macro 'Z_ARRVAL' php_taint_mark_strings(Z_ARRVAL(PG(http_globals)[TRACK_VARS_GET])); ^ /usr/include/php5/Zend/zend_operators.h:485:29: error: request for member 'type' in something not a structure or union

define Z_TYPE(zval) (zval).type

                         ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1911:6: note: in expansion of macro 'Z_TYPE' if (Z_TYPE(PG(http_globals)[TRACK_VARS_COOKIE]) == IS_ARRAY) { ^ /usr/include/php5/Zend/zend_operators.h:445:32: error: request for member 'value' in something not a structure or union

define Z_ARRVAL(zval) (zval).value.ht

                            ^

/home/ubuntu/Desktop/taint-taint-2.0.2/taint.c:1912:26: note: in expansion of macro 'Z_ARRVAL' php_taint_mark_strings(Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE])); ^ make: *** [taint.lo]error 1

gwijayas commented 6 years ago

Similar with me. But I am using php 5.6.38, build myself on Ubuntu 16.04.

There is no problem build on php 7.0, 7.1 and 7.2

lixin1234qqq commented 5 years ago

You guys need check out to branch php5 . . .