]> granicus.if.org Git - php/commitdiff
Cleanup
authorAnatol Belski <ab@php.net>
Tue, 14 Aug 2018 12:33:19 +0000 (14:33 +0200)
committerAnatol Belski <ab@php.net>
Tue, 14 Aug 2018 12:33:19 +0000 (14:33 +0200)
ext/dom/document.c

index e16788072b556b3997963839fe95136540058241..aba43f13858f162f7f08851d0f3e8ebb2f07a665 100644 (file)
@@ -2193,11 +2193,7 @@ PHP_FUNCTION(dom_document_save_html)
                }
                if (!outBuf->error) {
                        xmlOutputBufferFlush(outBuf);
-#ifdef LIBXML2_NEW_BUFFER
                        mem = (xmlChar*) xmlBufferContent(buf);
-#else
-                       mem = (xmlChar*) outBuf->buffer->content;
-#endif
                        if (!mem) {
                                RETVAL_FALSE;
                        } else {