Menu

#32 owfs PHP code is not PHP 7 compliant

v1.0_(example)
open
nobody
None
1
2016-08-05
2016-08-05
No

We have a package for owfs in the Buildroot build system. Unfortunately, since we moved to PHP version 7.x, the PHP support in owfs started failing to build. It would be good if the PHP support was updated to support 7.x. The error messages look like what follows (full error log available at http://autobuild.buildroot.net/results/fe6/fe6843ec53fbed452d2e38a8577a235f73abb8db/build-end.log) :

                                               ^

ow_wrap.c:811:51: note: each undeclared identifier is reported only once for each function it appears in
ow_wrap.c: In function 'SWIG_ZTS_SetPointerZval':
ow_wrap.c:861:9: warning: passing argument 1 of 'zend_lookup_class' from incompatible pointer type [enabled by default]
result = zend_lookup_class(classname, SWIG_PREFIX_LEN + type_name_len, &ce TSRMLS_CC);
^
In file included from /home/buildroot/build/instance-0/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/php/Zend/zend_API.h:31:0,
from ow_wrap.c:725:
/home/buildroot/build/instance-0/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/php/Zend/zend_execute.h:44:28: note: expected 'struct zend_string ' but argument is of type 'char '
ZEND_API zend_class_entry zend_lookup_class(zend_string name);
^
ow_wrap.c:861:9: error: too many arguments to function 'zend_lookup_class'
result = zend_lookup_class(classname, SWIG_PREFIX_LEN + type_name_len, &ce TSRMLS_CC);
^

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.