mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fixed return value to comply with tests
This commit is contained in:
parent
da9aee9703
commit
556dde6a34
@ -675,7 +675,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_xml)
|
||||
ret = -1;
|
||||
if (newdocp) {
|
||||
ret = xsltSaveResultToString(&doc_txt_ptr, &doc_txt_len, newdocp, sheetp);
|
||||
if (doc_txt_ptr) {
|
||||
if (doc_txt_ptr && doc_txt_len) {
|
||||
RETVAL_STRINGL(doc_txt_ptr, doc_txt_len, 1);
|
||||
xmlFree(doc_txt_ptr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user