summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/base64.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/standard/base64.c b/ext/standard/base64.c
index fb6d491acf..c750c7a0b9 100644
--- a/ext/standard/base64.c
+++ b/ext/standard/base64.c
@@ -790,11 +790,7 @@ PHP_FUNCTION(base64_encode)
ZEND_PARSE_PARAMETERS_END();
result = php_base64_encode((unsigned char*)str, str_len);
- if (result != NULL) {
- RETURN_STR(result);
- } else {
- RETURN_FALSE;
- }
+ RETURN_STR(result);
}
/* }}} */