Project

Profile

Help

Bug #6574

closed

libc++abi: terminating due to uncaught exception of type SaxonApiException: std::exception

Added by O'Neil Delpratt about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
PHP Extension function
Start date:
2024-10-30
Due date:
% Done:

100%

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

Description

The following PPH script which tries to call getStrongValue on a XdmItem object which is a XdmArray object crashes with the following exception:

libc++abi: terminating due to uncaught exception of type SaxonApiException: std::exception

This is because an Array has no string value. Therefore the PHP extension should have a try catch block in the XdmItem.getStringValue().

Actions #1

Updated by O'Neil Delpratt about 1 month ago

  • Found in version set to 12.5
Actions #2

Updated by O'Neil Delpratt about 1 month ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Applies to branch 12, trunk added

Bug fixed in the XdmItem.getStringValue() method in the PHP cpde php8_Saxon.cpp file.

We are now using a try catch block.

Please register to edit this issue

Also available in: Atom PDF