Created
January 22, 2020 17:30
-
-
Save z3nth10n/254fe7cc352b682fb172429a23220fb3 to your computer and use it in GitHub Desktop.
PHT COMPILING ON PHP 7.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/bash /root/pht/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/root/pht -DPHP_ATOM_INC -I/root/pht/include -I/root/pht/main -I/root/pht -I/etc/php7/include/php -I/etc/php7/include/php/main -I/etc/php7/include/php/TSRM -I/etc/php7/include/php/Zend -I/etc/php7/include/php/ext -I/etc/php7/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O0 -std=gnu99 -c /root/pht/src/pht_copy.c -o src/pht_copy.lo | |
cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/root/pht -DPHP_ATOM_INC -I/root/pht/include -I/root/pht/main -I/root/pht -I/etc/php7/include/php -I/etc/php7/include/php/main -I/etc/php7/include/php/TSRM -I/etc/php7/include/php/Zend -I/etc/php7/include/php/ext -I/etc/php7/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O0 -std=gnu99 -c /root/pht/src/pht_copy.c -fPIC -DPIC -o src/.libs/pht_copy.o | |
/root/pht/src/pht_copy.c: In function ‘copy_static_variables’: | |
/root/pht/src/pht_copy.c:272:22: error: ‘IS_CONSTANT’ undeclared (first use in this function) | |
case IS_CONSTANT: | |
^~~~~~~~~~~ | |
/root/pht/src/pht_copy.c:272:22: note: each undeclared identifier is reported only once for each function it appears in | |
/root/pht/src/pht_copy.c:277:21: warning: implicit declaration of function ‘ZVAL_NEW_AST’ [-Wimplicit-function-declaration] | |
ZVAL_NEW_AST(©, pht_zend_ast_copy(Z_ASTVAL_P(value))); | |
^~~~~~~~~~~~ | |
/root/pht/src/pht_copy.c: In function ‘copy_zend_op_array’: | |
/root/pht/src/pht_copy.c:330:17: error: ‘zend_op_array {aka struct _zend_op_array}’ has no member named ‘early_binding’ | |
new_op_array->early_binding = old_op_array->early_binding; | |
^~ | |
/root/pht/src/pht_copy.c:330:47: error: ‘zend_op_array {aka struct _zend_op_array}’ has no member named ‘early_binding’ | |
new_op_array->early_binding = old_op_array->early_binding; | |
^~ | |
/root/pht/src/pht_copy.c:352:17: error: ‘zend_op_array {aka struct _zend_op_array}’ has no member named ‘run_time_cache’; did you mean ‘run_time_cache__ptr’? | |
new_op_array->run_time_cache = NULL; | |
^~ | |
In file included from /root/pht/src/pht_copy.c:21:0: | |
/root/pht/src/pht_copy.c: In function ‘copy_class_constant’: | |
./src/pht_zend.h:37:34: error: ‘IS_TYPE_COPYABLE’ undeclared (first use in this function) | |
if ((_t & ((IS_TYPE_REFCOUNTED|IS_TYPE_COPYABLE) << Z_TYPE_FLAGS_SHIFT)) != 0) { \ | |
^ | |
/root/pht/src/pht_copy.c:474:5: note: in expansion of macro ‘PHT_ZVAL_DUP’ | |
PHT_ZVAL_DUP(&new_constant->value, &old_constant->value); | |
^~~~~~~~~~~~ | |
./src/pht_zend.h:41:21: error: lvalue required as increment operand | |
GC_REFCOUNT(_gc)++; \ | |
^ | |
/root/pht/src/pht_copy.c:474:5: note: in expansion of macro ‘PHT_ZVAL_DUP’ | |
PHT_ZVAL_DUP(&new_constant->value, &old_constant->value); | |
^~~~~~~~~~~~ | |
/root/pht/src/pht_copy.c: In function ‘copy_constant’: | |
./src/pht_zend.h:37:34: error: ‘IS_TYPE_COPYABLE’ undeclared (first use in this function) | |
if ((_t & ((IS_TYPE_REFCOUNTED|IS_TYPE_COPYABLE) << Z_TYPE_FLAGS_SHIFT)) != 0) { \ | |
^ | |
/root/pht/src/pht_copy.c:488:5: note: in expansion of macro ‘PHT_ZVAL_DUP’ | |
PHT_ZVAL_DUP(&new_constant->value, &old_constant->value); | |
^~~~~~~~~~~~ | |
./src/pht_zend.h:41:21: error: lvalue required as increment operand | |
GC_REFCOUNT(_gc)++; \ | |
^ | |
/root/pht/src/pht_copy.c:488:5: note: in expansion of macro ‘PHT_ZVAL_DUP’ | |
PHT_ZVAL_DUP(&new_constant->value, &old_constant->value); | |
^~~~~~~~~~~~ | |
/root/pht/src/pht_copy.c:491:17: error: ‘zend_constant {aka struct _zend_constant}’ has no member named ‘flags’ | |
new_constant->flags = old_constant->flags; | |
^~ | |
/root/pht/src/pht_copy.c:491:39: error: ‘zend_constant {aka struct _zend_constant}’ has no member named ‘flags’ | |
new_constant->flags = old_constant->flags; | |
^~ | |
/root/pht/src/pht_copy.c:492:17: error: ‘zend_constant {aka struct _zend_constant}’ has no member named ‘module_number’ | |
new_constant->module_number = old_constant->module_number; | |
^~ | |
/root/pht/src/pht_copy.c:492:47: error: ‘zend_constant {aka struct _zend_constant}’ has no member named ‘module_number’ | |
new_constant->module_number = old_constant->module_number; | |
^~ | |
/root/pht/src/pht_copy.c: In function ‘create_new_ce’: | |
/root/pht/src/pht_copy.c:559:11: error: ‘zend_class_entry {aka struct _zend_class_entry}’ has no member named ‘static_members_table’; did you mean ‘static_members_table__ptr’? | |
new_ce->static_members_table = copy_zval_table(old_ce->default_static_members_table, old_ce->default_static_members_count); | |
^~ | |
/root/pht/src/pht_copy.c:579:36: error: ‘zend_class_entry {aka struct _zend_class_entry}’ has no member named ‘iterator_funcs’; did you mean ‘iterator_funcs_ptr’? | |
copy_iterator_functions(&new_ce->iterator_funcs, old_ce->iterator_funcs); | |
^~ | |
/root/pht/src/pht_copy.c:579:60: error: ‘zend_class_entry {aka struct _zend_class_entry}’ has no member named ‘iterator_funcs’; did you mean ‘iterator_funcs_ptr’? | |
copy_iterator_functions(&new_ce->iterator_funcs, old_ce->iterator_funcs); | |
^~ | |
/root/pht/src/pht_copy.c:593:11: error: ‘zend_class_entry {aka struct _zend_class_entry}’ has no member named ‘traits’; did you mean ‘num_traits’? | |
new_ce->traits = copy_traits(old_ce->traits, old_ce->num_traits); | |
^~ | |
/root/pht/src/pht_copy.c:593:40: error: ‘zend_class_entry {aka struct _zend_class_entry}’ has no member named ‘traits’; did you mean ‘num_traits’? | |
new_ce->traits = copy_traits(old_ce->traits, old_ce->num_traits); | |
^~ | |
/root/pht/src/pht_copy.c: In function ‘copy_trait_method_reference’: | |
/root/pht/src/pht_copy.c:666:25: error: ‘zend_trait_method_reference {aka struct _zend_trait_method_reference}’ has no member named ‘ce’ | |
new_method_reference->ce = copy_ce(method_reference->ce); | |
^~ | |
/root/pht/src/pht_copy.c:666:56: error: ‘zend_trait_method_reference {aka struct _zend_trait_method_reference}’ has no member named ‘ce’ | |
new_method_reference->ce = copy_ce(method_reference->ce); | |
^~ | |
/root/pht/src/pht_copy.c: In function ‘copy_trait_precedences’: | |
/root/pht/src/pht_copy.c:693:68: error: incompatible type for argument 1 of ‘copy_trait_method_reference’ | |
new_tps[count]->trait_method = copy_trait_method_reference(old_tps[count]->trait_method); | |
^~~~~~~ | |
/root/pht/src/pht_copy.c:661:37: note: expected ‘zend_trait_method_reference * {aka struct _zend_trait_method_reference *}’ but argument is of type ‘zend_trait_method_reference {aka struct _zend_trait_method_reference}’ | |
static zend_trait_method_reference *copy_trait_method_reference(zend_trait_method_reference *method_reference) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/root/pht/src/pht_copy.c:695:27: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
if (old_tps[count]->exclude_from_classes) { | |
^~ | |
/root/pht/src/pht_copy.c:696:27: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
new_tps[count]->exclude_from_classes = malloc(sizeof(*old_tps[count]->exclude_from_classes)); | |
^~ | |
/root/pht/src/pht_copy.c:696:81: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
new_tps[count]->exclude_from_classes = malloc(sizeof(*old_tps[count]->exclude_from_classes)); | |
^~ | |
/root/pht/src/pht_copy.c:697:27: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
new_tps[count]->exclude_from_classes->ce = copy_ce(old_tps[count]->exclude_from_classes->ce); | |
^~ | |
/root/pht/src/pht_copy.c:697:78: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
new_tps[count]->exclude_from_classes->ce = copy_ce(old_tps[count]->exclude_from_classes->ce); | |
^~ | |
/root/pht/src/pht_copy.c:698:27: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
new_tps[count]->exclude_from_classes->class_name = zend_string_dup(old_tps[count]->exclude_from_classes->class_name, 0); | |
^~ | |
/root/pht/src/pht_copy.c:698:94: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
new_tps[count]->exclude_from_classes->class_name = zend_string_dup(old_tps[count]->exclude_from_classes->class_name, 0); | |
^~ | |
/root/pht/src/pht_copy.c:700:27: error: ‘zend_trait_precedence {aka struct _zend_trait_precedence}’ has no member named ‘exclude_from_classes’; did you mean ‘exclude_class_names’? | |
new_tps[count]->exclude_from_classes = NULL; | |
^~ | |
/root/pht/src/pht_copy.c: In function ‘copy_trait_aliases’: | |
/root/pht/src/pht_copy.c:723:68: error: incompatible type for argument 1 of ‘copy_trait_method_reference’ | |
new_tas[count]->trait_method = copy_trait_method_reference(old_tas[count]->trait_method); | |
^~~~~~~ | |
/root/pht/src/pht_copy.c:661:37: note: expected ‘zend_trait_method_reference * {aka struct _zend_trait_method_reference *}’ but argument is of type ‘zend_trait_method_reference {aka struct _zend_trait_method_reference}’ | |
static zend_trait_method_reference *copy_trait_method_reference(zend_trait_method_reference *method_reference) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Makefile:194: fallo en las instrucciones para el objetivo 'src/pht_copy.lo' | |
make: *** [src/pht_copy.lo] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment