From: Anatol Belski Date: Wed, 12 Oct 2016 15:12:38 +0000 (+0200) Subject: fix typo X-Git-Tag: php-7.1.0RC4~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5e9a73db25fb1348bd4a68a83d1237b14d05e17;p=php fix typo (cherry picked from commit efc1f33b58b0936539ea6ca1de345bd83c7e8f26) --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 1f75052ed7..7870377687 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1499,7 +1499,7 @@ SXE_METHOD(asXML) return_content = (char *)outbuf->buffer->content; return_len = outbuf->buffer->use; #endif - if (return_content) { + if (!return_content) { RETVAL_FALSE; } else { RETVAL_STRINGL(return_content, return_len);