summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-05-13 02:13:30 +0000
committerFelipe Pena <felipe@php.net>2010-05-13 02:13:30 +0000
commita8cad398fcd2a1711c37696940ac9141a05ff7fc (patch)
treed5cac15f89cac4fe034e15b9dc90564636a4482a /ext/standard/basic_functions.c
parentc5a068e025f4f75410548721493856a4bce37fc7 (diff)
downloadphp-git-a8cad398fcd2a1711c37696940ac9141a05ff7fc.tar.gz
- Fixed bug #51791 (constant() aborts execution when fail to check undefined constant)
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index e9a6a8bd60..8889337d6c 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -3826,7 +3826,7 @@ PHP_FUNCTION(constant)
return;
}
- if (!zend_get_constant_ex(const_name, const_name_len, return_value, NULL, 0 TSRMLS_CC)) {
+ if (!zend_get_constant_ex(const_name, const_name_len, return_value, NULL, ZEND_FETCH_CLASS_SILENT TSRMLS_CC)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", const_name);
RETURN_NULL();
}