diff options
| author | Felipe Pena <felipe@php.net> | 2010-05-13 02:13:30 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2010-05-13 02:13:30 +0000 |
| commit | a8cad398fcd2a1711c37696940ac9141a05ff7fc (patch) | |
| tree | d5cac15f89cac4fe034e15b9dc90564636a4482a /ext/standard/basic_functions.c | |
| parent | c5a068e025f4f75410548721493856a4bce37fc7 (diff) | |
| download | php-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.c | 2 |
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(); } |
