Skip to content

Commit 978ba6e

Browse files
committed
Disallow disabling the array() function
1 parent 7accee0 commit 978ba6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,6 +3641,7 @@ static void zend_disable_function(const char *function_name, size_t function_nam
36413641
if (UNEXPECTED(
36423642
(function_name_length == strlen("exit") && !memcmp(function_name, "exit", strlen("exit")))
36433643
|| (function_name_length == strlen("die") && !memcmp(function_name, "die", strlen("die")))
3644+
|| (function_name_length == strlen("array") && !memcmp(function_name, "array", strlen("array")))
36443645
)) {
36453646
zend_error(E_WARNING, "Cannot disable function %s()", function_name);
36463647
return;

0 commit comments

Comments
 (0)