-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I came to report an issue while compiling the extension using php 7.3.16.
-
The ZEND_THIS constant
Seems like the constantZEND_THISis not available there. Before this value used to be fetched withgetThis()in this repo. With php7.4it works. ReplacingZEND_THISwithgetThis()solves the issue on php 7.3. -
The zend_std_write_property() call
Another thing quite common in this repo is the following line:
value = zend_std_write_property(object, member, value, cache_slot);This happens, for example, here:
Line 231 in 89a9f1f
| value = zend_std_write_property(object, member, value, cache_slot); |
This seems to be problematic on php 7.3.16 as zend_std_write_property() returns void and value is a zval, passed for writing as the third parameter. Removing the assignment seems to solve the issue.
Note: I'm running MacOS Catalina. But this seems to be independent from build environment.
What is the minimum version supported?
I'd be happy to send out some pull requests if php 7.3 is supposed to be supported. I'm not a C expert but I think I can help a bit there.
Cheers!