[PHP-DEV] Saxon/C - PHP C++ extension threading issues

2019-11-18 Thread O';Neil Delpratt
Hi, Consultancy help: I have written an PHP 7.X extension to my Saxon/C C++ API. My C++ program has an Excelsior JET JNI environment which is created as a static variable at the start of the program and released at the end. The threads are created by the JET Runtime, e.g. GC thread, weak refer

Re: [PHP-DEV] Help please: child processes are not killed when PHP is done

2018-05-17 Thread O';Neil Delpratt
From my investigation an internal library Excelsior Jet is creating the extra threads, which I need to release. > On 17 May 2018, at 09:57, O'Neil Delpratt wrote: > > Hi All, > > I am experiencing a strange behaviour in my PHP extension. My setup: Ubuntu > LTS 16,

[PHP-DEV] Help please: child processes are not killed when PHP is done

2018-05-17 Thread O';Neil Delpratt
Hi All, I am experiencing a strange behaviour in my PHP extension. My setup: Ubuntu LTS 16, Apache 2.4, PHP 7.0.30 (tested with PHP 7.1.17) and latest Saxon-HE/C 64bit. Observed behaviour is that Apache spawns a couple of child processes as soon as Saxon is invoked. Problem is that those child

[PHP-DEV] RFC proposal: Provide support for XSLT 3.0, XPath 3.1, and XQuery 3.1

2017-10-03 Thread O';Neil Delpratt
in PHP-specific areas of the project. Info on the latest Saxon/C release: http://www.saxonica.com/saxon-c/index.xml <http://www.saxonica.com/saxon-c/index.xml> I welcome your comments in this intended proposal. kind regards, --- O'Neil Delpratt Software Developer,

Re: [PHP-DEV] PHP extension - Saxon/C

2017-09-25 Thread O';Neil Delpratt
Problem resolved. It was actually the following line I had still there: Z_ADDREF_P(oth); > On 25 Sep 2017, at 11:36, O'Neil Delpratt wrote: > > Ok. Thanks for taking a look. > > Potenial problem could be the following line: > > const char * objName =ZSTR_VAL(Z_OBJC

Re: [PHP-DEV] PHP extension - Saxon/C

2017-09-25 Thread O';Neil Delpratt
Ok. Thanks for taking a look. Potenial problem could be the following line: const char * objName =ZSTR_VAL(Z_OBJCE_P(oth)->name); I think I need to free the objName some how. > On 22 Sep 2017, at 18:42, Sara Golemon wrote: > >>> On Fri, Sep 22, 2017 at 12:21 PM, O'Ne

Re: [PHP-DEV] PHP extension - Saxon/C

2017-09-22 Thread O';Neil Delpratt
rote: > > On Fri, Sep 22, 2017 at 12:21 PM, O'Neil Delpratt wrote: >> I still have the memory leak without that line. I think I was thinking I >> need to add a refcount to the XdmNode object, but maybe I am wrong. >> > What's the shortest possible script you can

Re: [PHP-DEV] PHP extension - Saxon/C

2017-09-22 Thread O';Neil Delpratt
I still have the memory leak without that line. I think I was thinking I need to add a refcount to the XdmNode object, but maybe I am wrong. > On 22 Sep 2017, at 17:09, Sara Golemon wrote: > > On Fri, Sep 22, 2017 at 7:01 AM, O'Neil Delpratt wrote: >> Z_ADDREF_

Re: [PHP-DEV] PHP extension - Saxon/C

2017-09-22 Thread O';Neil Delpratt
> On 22 Sep 2017, at 15:40, Johannes Schlüter wrote: > > On Fr, 2017-09-22 at 12:01 +0100, O'Neil Delpratt wrote: >> >> [Fri Sep 22 08:56:42 2017] Script: '/home/ond1/work/svn/latest9.8- >> saxonc/hec/samples/php/xqueryExamples.php' >&

[PHP-DEV] PHP extension - Saxon/C

2017-09-22 Thread O';Neil Delpratt
se ……. See full code of PHP extension: https://dev.saxonica.com/repos/archive/opensource/latest9.8/hec/Saxon.C.API/php7_saxon.cpp <https://dev.saxonica.com/repos/archive/opensource/latest9.8/hec/Saxon.C.API/php7_saxon.cpp> kind regards, O'Neil --- O'

[PHP-DEV] First major release of Saxon/C version 1.0.0 now available: Supporting XSLT 2.0/3.0 on C/C++ and PHP

2016-02-08 Thread O';Neil Delpratt
Dear All, Following the successes of Saxon/C alpha and beta releases over the last 2 years we are pleased to say that we have released the first major release of Saxon/C version 1.0.0. This release is only available under a Linux platform. The Windows release will follow later. We hope this wil