Project

Profile

Help

Bug #6338

closed

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

Added by O'Neil Delpratt 10 months ago. Updated 5 months ago.

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

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
12
Fixed in Maintenance Release:
Found in version:
12.4.2
Fixed in version:
12.5
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

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