Opened 10 years ago

Closed 9 years ago

#459 closed defect (fixed)

Prebuilt PHP bindings won't work on PHP 5.3.0

Reported by: Charlie Hull Owned by: Charlie Hull
Priority: normal Milestone: 1.2.4
Component: MSVC makefiles Version: 1.0.18
Severity: normal Keywords:
Cc: daniel.menard@… Blocked By:
Blocking: Operating System: Microsoft Windows

Description

Bjorn Lamers reports that the prebuilt PHP bindings for Windows won't work on PHP 5.3.0 (the error is " PHP Startup: xapian: Unable to initialize module..."). Further investigation reveals the PHP module API has changed for 5.3.0 and is not backwards compatible. We'll probably need to build separate files for PHP 5.3.0.

Change History (4)

comment:1 by Daniel Ménard, 10 years ago

Cc: daniel.menard@… added

comment:2 by Olly Betts, 10 years ago

Component: Xapian-bindingsMSVC makefiles

Yes, they changed the API in 5.3.

If you have php-config, then php-config --phpapi will give you the API version (it gives 20060613 for 5.2.10, 20090626 for 5.3.2). This is what must match for things to work.

This isn't really an issue in the bindings themselves, but rather in how you are packaging them, so setting component to reflect that.

comment:3 by Charlie Hull, 9 years ago

Fixed in patch 45 for trunk, attached to http://trac.xapian.org/ticket/495

comment:4 by Olly Betts, 9 years ago

Milestone: 1.2.4
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.