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
|
@ -175,11 +175,7 @@ zend_result dom_documenttype_internal_subset_read(dom_object *obj, zval *retval)
|
|||
xmlNodeDumpOutput (buff, NULL, cur, 0, 0, NULL);
|
||||
xmlOutputBufferFlush(buff);
|
||||
|
||||
#ifdef LIBXML2_NEW_BUFFER
|
||||
smart_str_appendl(&ret_buf, (const char *) xmlOutputBufferGetContent(buff), xmlOutputBufferGetSize(buff));
|
||||
#else
|
||||
smart_str_appendl(&ret_buf, (char *) buff->buffer->content, buff->buffer->use);
|
||||
#endif
|
||||
|
||||
(void)xmlOutputBufferClose(buff);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue