summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-12-20 11:10:20 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-12-20 14:31:57 +0100
commit0e8070778ef1265cb3bdac68411c271e696f2059 (patch)
treee6299ec1d6215518f0c1525e94c693f52bf1912f /Zend/zend_builtin_functions.c
parentf52f471a5e65ecbc6a81a8c417be9c1fd12b600e (diff)
downloadphp-git-0e8070778ef1265cb3bdac68411c271e696f2059.tar.gz
Make get_defined_vars() always return an array
GH-5025
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index a369b1eab7..2832fb3e0a 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -1630,7 +1630,7 @@ ZEND_FUNCTION(get_defined_vars)
symbol_table = zend_rebuild_symbol_table();
if (UNEXPECTED(symbol_table == NULL)) {
- return;
+ RETURN_EMPTY_ARRAY();
}
RETURN_ARR(zend_array_dup(symbol_table));