Opened 45 minutes ago
#859 new defect
PHP 8.6 compatibility
| Reported by: | casper | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xapian-bindings (PHP) | Version: | 1.4.32 |
| Severity: | normal | Keywords: | |
| Cc: | casper | Blocked By: | |
| Blocking: | Operating System: | All |
Description
The xapian binding 1.4.32 won't compile for PHP 8.6.
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../php -I.. -I/usr/include/php/20260924 -I/usr/include/php/20260924/main -I/usr/include/php/20260924/TSRM -I/usr/include/php/20260924/Zend -I/usr/include/php/20260924/ext -I/usr/include/php/20260924/ext/date/lib -Wdate-time -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/root/xapian/xapian-build/xapian-bindings=. -fstack-protector-strong -Wformat -Werror=format-security -c -o php/xapian_wrap.lo ../../../../php/php/xapian_wrap.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../../php -I.. -I/usr/include/php/20260924 -I/usr/include/php/20260924/main -I/usr/include/php/20260924/TSRM -I/usr/include/php/20260924/Zend -I/usr/include/php/20260924/ext -I/usr/include/php/20260924/ext/date/lib -Wdate-time -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/root/xapian/xapian-build/xapian-bindings=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../../../php/php/xapian_wrap.cc -fPIC -DPIC -o php/.libs/xapian_wrap.o
../../../../php/php/xapian_wrap.cc: In function 'swig_object_wrapper* swig_php_fetch_object(zend_object*)':
../../../../php/php/xapian_wrap.cc:848:78: error: expected primary-expression before ',' token
848 | return (swig_object_wrapper *)((char *)obj - XtOffsetOf(swig_object_wrapper, std));
| ^
../../../../php/php/xapian_wrap.cc:848:83: error: expected primary-expression before ')' token
848 | return (swig_object_wrapper *)((char *)obj - XtOffsetOf(swig_object_wrapper, std));
| ^
../../../../php/php/xapian_wrap.cc:848:48: error: 'XtOffsetOf' was not declared in this scope; did you mean 'offsetof'?
848 | return (swig_object_wrapper *)((char *)obj - XtOffsetOf(swig_object_wrapper, std));
| ^~~~~~~~~~
| offsetof
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_MatchDecider::operator()(const Xapian::Document&) const':
../../../../php/php/xapian_wrap.cc:2899:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
2899 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_ExpandDecider::operator()(const std::string&) const':
../../../../php/php/xapian_wrap.cc:2935:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
2935 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_Stopper::operator()(const std::string&) const':
../../../../php/php/xapian_wrap.cc:3006:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
3006 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_PostingSource::check(Xapian::docid, double)':
../../../../php/php/xapian_wrap.cc:3429:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
3429 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_PostingSource::at_end() const':
../../../../php/php/xapian_wrap.cc:3453:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
3453 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_ValuePostingSource::check(Xapian::docid, double)':
../../../../php/php/xapian_wrap.cc:3747:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
3747 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_ValuePostingSource::at_end() const':
../../../../php/php/xapian_wrap.cc:3771:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
3771 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_ValueWeightPostingSource::check(Xapian::docid, double)':
../../../../php/php/xapian_wrap.cc:4065:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
4065 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In member function 'virtual bool SwigDirector_ValueWeightPostingSource::at_end() const':
../../../../php/php/xapian_wrap.cc:4089:23: error: 'zval_is_true' was not declared in this scope; did you mean 'zend_is_true'?
4089 | c_result = (bool) zval_is_true(&*result);
| ^~~~~~~~~~~~
| zend_is_true
../../../../php/php/xapian_wrap.cc: In function 'void zif_version_string(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4411:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4411 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zif_major_version(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4435:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4435 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zif_minor_version(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4455:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4455 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zif_revision(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4475:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4475 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator___construct(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4491:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4491 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator_skip_to(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4510:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4510 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator_get_description(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4538:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4538 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator_key(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4563:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4563 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator_current(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4581:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4581 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator_valid(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4599:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4599 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator_rewind(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4616:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4616 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zim_XapianPositionIterator_equals(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:4634:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
4634 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
... many more WRONG_PARAM_COUNT lines ...
../../../../php/php/xapian_wrap.cc: In function 'void _wrap_remote_open_writable__SWIG_6(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:40791:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
40791 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: In function 'void zif_BAD_VALUENO_get(zend_execute_data*, zval*)':
../../../../php/php/xapian_wrap.cc:41002:5: error: 'WRONG_PARAM_COUNT' was not declared in this scope
41002 | WRONG_PARAM_COUNT;
| ^~~~~~~~~~~~~~~~~
../../../../php/php/xapian_wrap.cc: At global scope:
../../../../php/php/xapian_wrap.cc:41036:8: error: 'ZEND_RESULT_CODE' does not name a type; did you mean 'ZEND_CALL_CODE'?
41036 | static ZEND_RESULT_CODE swig_ptr_cast_object(zend_object *zobj, zval *retval, int type) {
| ^~~~~~~~~~~~~~~~
| ZEND_CALL_CODE
../../../../php/php/xapian_wrap.cc: In function 'zend_result zm_startup_xapian(int, int)':
../../../../php/php/xapian_wrap.cc:43471:72: error: expected primary-expression before ',' token
43471 | Swig_Php_base_object_handlers.offset = XtOffsetOf(swig_object_wrapper, std);
| ^
../../../../php/php/xapian_wrap.cc:43471:77: error: expected primary-expression before ')' token
43471 | Swig_Php_base_object_handlers.offset = XtOffsetOf(swig_object_wrapper, std);
| ^
../../../../php/php/xapian_wrap.cc:43471:42: error: 'XtOffsetOf' was not declared in this scope; did you mean 'offsetof'?
43471 | Swig_Php_base_object_handlers.offset = XtOffsetOf(swig_object_wrapper, std);
| ^~~~~~~~~~
| offsetof
../../../../php/php/xapian_wrap.cc:44388:67: error: expected primary-expression before ',' token
44388 | swig_ptr_object_handlers.offset = XtOffsetOf(swig_object_wrapper, std);
| ^
../../../../php/php/xapian_wrap.cc:44388:72: error: expected primary-expression before ')' token
44388 | swig_ptr_object_handlers.offset = XtOffsetOf(swig_object_wrapper, std);
| ^
../../../../php/php/xapian_wrap.cc:44389:42: error: 'swig_ptr_cast_object' was not declared in this scope; did you mean 'swig_php_fetch_object'?
44389 | swig_ptr_object_handlers.cast_object = swig_ptr_cast_object;
| ^~~~~~~~~~~~~~~~~~~~
| swig_php_fetch_object
Note:
See TracTickets
for help on using tickets.
