summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-10-12 17:12:38 +0200
committerAnatol Belski <ab@php.net>2016-10-14 01:43:54 +0200
commita5e9a73db25fb1348bd4a68a83d1237b14d05e17 (patch)
tree9fb1ae194f7e97a74216ee4b1530a3cbf5c64fd9 /ext/simplexml
parent41ed9d1f9f1f0fd097e8157e42a4689d117e083d (diff)
downloadphp-git-a5e9a73db25fb1348bd4a68a83d1237b14d05e17.tar.gz
fix typo
(cherry picked from commit efc1f33b58b0936539ea6ca1de345bd83c7e8f26)
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 1 insertions, 1 deletions
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);