mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove obsolete libxml2 code
LIBXML2_NEW_BUFFER is always defined since libxml2 2.9.0. That's the minimum version PHP requires, so it will always be defined.
This commit is contained in:
parent
518233c39d
commit
0ea268b51a
3 changed files with 0 additions and 17 deletions
|
@ -1432,13 +1432,8 @@ PHP_METHOD(SimpleXMLElement, asXML)
|
|||
|
||||
xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, (const char *) ((xmlDocPtr) sxe->document->ptr)->encoding);
|
||||
xmlOutputBufferFlush(outbuf);
|
||||
#ifdef LIBXML2_NEW_BUFFER
|
||||
return_content = (char *)xmlOutputBufferGetContent(outbuf);
|
||||
return_len = xmlOutputBufferGetSize(outbuf);
|
||||
#else
|
||||
return_content = (char *)outbuf->buffer->content;
|
||||
return_len = outbuf->buffer->use;
|
||||
#endif
|
||||
if (!return_content) {
|
||||
RETVAL_FALSE;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue