Project

Profile

Help

Bug #4400

closed

PHP build error: error: .libs/SchemaValidator.o: No such file or directory

Added by O'Neil Delpratt over 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
PHP API
Start date:
2019-12-02
Due date:
% Done:

0%

Estimated time:
Found in version:
1.2.1
Fixed in version:
11.1
Platforms:

Description

Reported by user:

https://stackoverflow.com/questions/59104572/installing-saxonica-ee-1-2-1-building-php-modules-produces-c-build-errors

In the PHP_MINT_FUNCTION the handler.Offset for SchemaValidator is incorrectly pointing to the XPathProcessor:

    INIT_CLASS_ENTRY(ce, "Saxon\\SchemaValidator", SchemaValidator_methods);
    schemaValidator_ce = zend_register_internal_class(&ce);
    schemaValidator_ce->create_object = schemaValidator_create_handler;
    memcpy(&schemaValidator_object_handlers, zend_get_std_object_handlers(), sizeof(schemaValidator_object_handlers));
    schemaValidator_object_handlers.offset = XtOffsetOf(xpathProcessor_object, std);
    schemaValidator_object_handlers.free_obj = schemaValidator_free_storage;
    schemaValidator_object_handlers.dtor_obj = schemaValidator_destroy_storage;

The line:

schemaValidator_object_handlers.offset = XtOffsetOf(xpathProcessor_object, std);

Should be:

schemaValidator_object_handlers.offset = XtOffsetOf(schemaValidator_object, std);
Actions #1

Updated by O'Neil Delpratt about 2 years ago

  • Status changed from New to Closed
  • Fixed in version set to 11.1

Bug fix applied in the SaxonC 11.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF