Project

Profile

Help

Bug #4151

closed

support of compileFromStringAndSave / compileFromFileAndSave + PHP5 build

Added by sébastien bocahu almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
PHP API
Start date:
2019-03-05
Due date:
% Done:

100%

Estimated time:
Found in version:
1.1.2
Fixed in version:
1.2.0
Platforms:

Description

Hi Saxonica team,

We would like to use the latest Saxon-HEC release, 1.1.2, that is supposed to bring support for compileFromStringAndSave / compileFromFileAndSave methods.

Unfortunately we have ran into issues with:

  1. building for PHP5: Fortunately, fix seems to be obvious: getUnderlyingValue() takes not arguments (see the attached patch)

  2. building for PHP5 w/ support for compileFromStringAndSave / compileFromFileAndSave methods: it seems that these features where added to PHP7 only. I tried to port it to PHP5, which was OK to compile & link (see attached patch)

  3. using compileFromFileAndSave(): resulted in a segfault. I can't tell if it that's my patch that is wrong or something happening in the JET Saxon library...

output: xml error0

JET RUNTIME HAS DETECTED UNRECOVERABLE ERROR: system exception at 0x00000000007026ee Please, contact the vendor of the application.

From the coredump:

PHP & module are not built with debugging symbols so backtrace lacks info: #0 0x00007fe9f8ed5067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007fe9f8ed6448 in __GI_abort () at abort.c:89 #2 0x00007fe9e8fa6b74 in ?? () from /usr/lib/libsaxonhec.so #3 0x0000000000000000 in ?? ()

And JET log: Signal 11 (SIGSEGV) siginfo: si_signo 11, si_errno 0, si_code 1, si_addr 0x0000000000000000 ...

I can provide you with more info if needed.

  1. it seems to me that even PHP7 misses some bits to get support of compileFromStringAndSave / compileFromFileAndSave methods: they should be registered into zend_function_entry XsltProcessor_methods[], shouldn't they ?

We would be glad to be have to use these methods in both php5 and php7 versions. Please feel free to ask for more info & test if needed.

Best regards,

Sebastien


Files

saxon.diff (2.62 KB) saxon.diff sébastien bocahu, 2019-03-05 09:33

Related issues

Related to SaxonC - Bug #4271: Saxon/C extension installation at Ubuntu 16.04 dont works!RejectedO'Neil Delpratt2019-08-06

Actions

Please register to edit this issue

Also available in: Atom PDF