Project

Profile

Help

Bug #4400

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

Added by O'Neil Delpratt 8 months ago.

Status:
New
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:

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);

Please register to edit this issue

Also available in: Atom PDF