-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error during Make #146
Comments
I'm having the same issue. |
I'll have a look at this. |
@nikhiltalati @davisenra, could you please tell me which version of PHP and OS you use? |
macOS Monterey (12.6.7) PHP is running on a Docker container. |
@davisenra, could you please test my PR to see if it fixes your problem? |
For sure! I'll test at work today and quote you here with my results. |
@kea worked like a charm! Building just fine on PHP 7.2, thank you for the effort :) |
/usr/sap/php7-sapnwrfc/sapnwrfc.c: In function ‘zim_Connection_getFunction’:
/usr/include/php/20190902/Zend/zend_types.h:701:37: warning: passing argument 2 of ‘zend_update_property_str’ from incompatible pointer type [-Wincompatible
-pointer-types]
701 | #define Z_OBJ(zval) (zval).value.obj
| ~~~~~~~~~~~~^~~~
| |
| zend_object * {aka struct _zend_object }
/usr/include/php/20190902/Zend/zend_types.h:702:28: note: in expansion of macro ‘Z_OBJ’
702 | #define Z_OBJ_P(zval_p) Z_OBJ((zval_p))
| ^~~~~
/usr/sap/php7-sapnwrfc/sapnwrfc.c:586:52: note: in expansion of macro ‘Z_OBJ_P’
586 | zend_update_property_str(sapnwrfc_function_ce, Z_OBJ_P(return_value), "name", sizeof("name")-1, zend_string_copy(function_name));
| ^~~~~~~
In file included from /usr/include/php/20190902/main/php.h:38,
from /usr/sap/php7-sapnwrfc/sapnwrfc.c:14:
/usr/include/php/20190902/Zend/zend_API.h:343:71: note: expected ‘zval *’ {aka ‘struct _zval_struct *’} but argument is of type ‘zend_object *’ {aka ‘struct
_zend_object *’}
343 | ZEND_API void zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_string *value);
| ~~~~~~^~~~~~
/usr/sap/php7-sapnwrfc/sapnwrfc.c: In function ‘register_sapnwrfc_function_object’:
/usr/sap/php7-sapnwrfc/sapnwrfc.c:1061:141: warning: implicit declaration of function ‘ZEND_TYPE_INIT_MASK’; did you mean ‘ZEND_TYPE_IS_CLASS’? [-Wimplicit-
function-declaration]
1061 | zend_declare_typed_property(sapnwrfc_function_ce, property_name_name, &property_name_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_I
NIT_MASK(MAY_BE_STRING));
| ^~~~~~~~~~~
The text was updated successfully, but these errors were encountered: