Thanks, after some more searching in the direction you pointed, it works in
a function of my extension.
Now I have another problem, which is trickier I think; in the same
extension, I'd like to have the possibility to call some PHP code from my
PHP_MINIT_FUNCTION and I'd like to pass a DOMDocum
François Lemaire wrote:
Hello all,
here's what I'm trying to do: I'm writing a PHP extension in C and I'd like
to create a DOMDocument object in my C code that I could send back to my PHP
code. I have been trying many things, like:
#include "ext/dom/php_dom.h"
zval *doc;
MAKE_STD_ZVAL(d
Hello all,
here's what I'm trying to do: I'm writing a PHP extension in C and I'd like
to create a DOMDocument object in my C code that I could send back to my PHP
code. I have been trying many things, like:
#include "ext/dom/php_dom.h"
zval *doc;
MAKE_STD_ZVAL(doc);
object_init_ex(doc, do