summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index ad05f3b5dd..6913d51193 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -89,7 +89,7 @@ static ZEND_INI_MH(OnUpdateGCEnabled) /* {{{ */
static ZEND_INI_MH(OnUpdateScriptEncoding) /* {{{ */
{
- if (!CG(multibyte)) {
+ if (!CG(multibyte) || !new_value) {
return FAILURE;
}
if (!zend_multibyte_get_functions()) {