diff options
| author | Daniel Veillard <veillard@redhat.com> | 2012-08-09 14:02:33 -0400 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2012-08-09 14:02:33 -0400 |
| commit | c4b26cc1b0b0521c75e653fffec2a9e3b4bf8cbb (patch) | |
| tree | ebc299e5dc089d08be5a1a6a85451bf3cbd8d712 /ext/simplexml/simplexml.c | |
| parent | ed793b2a3f857fd49c0c1b036062140da5b3e674 (diff) | |
| download | php-git-c4b26cc1b0b0521c75e653fffec2a9e3b4bf8cbb.tar.gz | |
Update to work with libxml 2.9.0
Diffstat (limited to 'ext/simplexml/simplexml.c')
| -rw-r--r-- | ext/simplexml/simplexml.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index a379111021..236859686f 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1387,7 +1387,11 @@ SXE_METHOD(asXML) xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->ptr)->encoding); xmlOutputBufferFlush(outbuf); +#ifdef LIBXML2_NEW_BUFFER + RETVAL_STRINGL((char *)xmlOutputBufferGetContent(outbuf), xmlOutputBufferGetSize(outbuf), 1); +#else RETVAL_STRINGL((char *)outbuf->buffer->content, outbuf->buffer->use, 1); +#endif xmlOutputBufferClose(outbuf); } } else { |
