Skip to content
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

Invalid Conversion: _handlers.write_property = &ClassImpl::writeProperty; #474

Open
VBruceHunt opened this issue Jan 15, 2021 · 1 comment

Comments

@VBruceHunt
Copy link

Occurs in zend/classimpl.cpp:358:32. Compiling on Raspberry PI 4 with 4GB using g++ version (Raspbian 8.3.0-6+rpi1) 8.3.0. Here is the error:
zend/classimpl.cpp: In member function ‘zend_object_handlers* Php::ClassImpl::objectHandlers()’: zend/classimpl.cpp:358:32: error: invalid conversion from ‘void (*)(zval*, zval*, zval*, void**)’ {aka ‘void (*)(_zval_struct*, _zval_struct*, _zval_struct*, void**)’} to ‘zend_object_write_property_t’ {aka ‘_zval_struct* (*)(_zval_struct*, _zval_struct*, _zval_struct*, void**)’} [-fpermissive] _handlers.write_property = &ClassImpl::writeProperty; ^~~~~~~~~~
Note that a simple cast is missing. The following change on line 358 corrects the error:
_handlers.write_property = (zend_object_write_property_t) &ClassImpl::writeProperty; //vbh21114

@VBruceHunt
Copy link
Author

Corrections as shown in issues 473 and 474 allows the make to complete albeit with several warnings using g++ version (Raspbian 8.3.0-6+rpi1) 8.3.0 against PHP 7.4.14 on a Raspberry PI 4 with 4GB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant