]> granicus.if.org Git - php/commitdiff
fix typo
authorAnatol Belski <ab@php.net>
Wed, 12 Oct 2016 15:12:38 +0000 (17:12 +0200)
committerAnatol Belski <ab@php.net>
Thu, 13 Oct 2016 23:43:54 +0000 (01:43 +0200)
(cherry picked from commit efc1f33b58b0936539ea6ca1de345bd83c7e8f26)

ext/simplexml/simplexml.c

index 1f75052ed74cbf3f8f290e1c8574b079c9512fdb..7870377687a27bedb19e5ca689b798e93a222a29 100644 (file)
@@ -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);