Re: PHP extension - Saxon/C

From: Date: Fri, 22 Sep 2017 15:06:00 +0000
Subject: Re: PHP extension - Saxon/C
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-100752@lists.php.net to get a copy of this message
> On 22 Sep 2017, at 15:40, Johannes Schlüter <johannes@schlueters.de> 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' >> /home/ond1/work/svn/latest9.8- >> saxonc/hec/Saxon.C.API/php7_saxon.cpp(3250) : Freeing > [...] >> 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/Saxo >> n.C.API/php7_saxon.cpp> > > could you point out which line 3250 is? In the linked file line 3250 > refers to this line: I think this is now 3243: xdmNode_object *obj = (xdmNode_object *)ecalloc(1, sizeof(xdmNode_object)+ zend_object_properties_size(type)); Which seems strange to me. > > > > PHP_METHOD(XdmNode, __construct) > { /* <------------------------------------ 3250 */ > php_error(E_WARNING,"XdmNode constructor"); > XdmNode *xdmNode = NULL; > > > which makes little sense :-) > Yes indeed. Some left over code which is not doing anything because a XdmNode can only be created by a utility method on other classes. > johannes >

« previous php.internals (#100752) next »