> On 22 Sep 2017, at 15:40, Johannes Schlüter <johan...@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
> 



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to