|
|
| version 1.1.1.2, 2012/05/29 12:34:37 | version 1.1.1.4, 2014/06/15 20:03:42 |
|---|---|
| Line 2 | Line 2 |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | PHP Version 5 | | | PHP Version 5 | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2014 The PHP Group | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | This source file is subject to version 3.01 of the PHP license, | | | This source file is subject to version 3.01 of the PHP license, | |
| | that is bundled with this package in the file LICENSE, and is | | | that is bundled with this package in the file LICENSE, and is | |
| Line 1895 static void dom_canonicalization(INTERNAL_FUNCTION_PAR | Line 1895 static void dom_canonicalization(INTERNAL_FUNCTION_PAR |
| RETVAL_FALSE; | RETVAL_FALSE; |
| } else { | } else { |
| if (mode == 0) { | if (mode == 0) { |
| #ifdef LIBXML2_NEW_BUFFER | |
| ret = xmlOutputBufferGetSize(buf); | |
| #else | |
| ret = buf->buffer->use; | ret = buf->buffer->use; |
| #endif | |
| if (ret > 0) { | if (ret > 0) { |
| #ifdef LIBXML2_NEW_BUFFER | |
| RETVAL_STRINGL((char *) xmlOutputBufferGetContent(buf), ret, 1); | |
| #else | |
| RETVAL_STRINGL((char *) buf->buffer->content, ret, 1); | RETVAL_STRINGL((char *) buf->buffer->content, ret, 1); |
| #endif | |
| } else { | } else { |
| RETVAL_EMPTY_STRING(); | RETVAL_EMPTY_STRING(); |
| } | } |