Project

Profile

Help

Bug #6338

closed

Segmentation fault in PHP when calling getHead() twice on XdmValue

Added by O'Neil Delpratt 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
PHP API
Start date:
2024-02-05
Due date:
% Done:

100%

Estimated time:
Found in version:
12.4.2
Fixed in version:
Platforms:

Description

The following PHPUnit test case:

...
        if ($result->getHead() != NULL) {
            $this->assertStringContainsString("[]", $result->getHead()->getStringValue());
        }

Throws the following error under gdb:

Thread 1 "php" received signal SIGSEGV, Segmentation fault.
0x00007ffff31a8e69 in zim_XdmValue_getHead(_zend_execute_data*, _zval_struct*) () from /usr/lib/php/20220829/saxon.so

Please register to edit this issue

Also available in: Atom PDF