mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Support for namespaces
This commit is contained in:
parent
f32ffe9b43
commit
f37e408ed8
1 changed files with 1 additions and 1 deletions
|
@ -4256,7 +4256,7 @@ PHP_FUNCTION(constant)
|
||||||
}
|
}
|
||||||
convert_to_string_ex(const_name);
|
convert_to_string_ex(const_name);
|
||||||
|
|
||||||
if (!zend_get_constant(Z_STRVAL_PP(const_name), Z_STRLEN_PP(const_name), return_value TSRMLS_CC)) {
|
if (!zend_get_constant_ex(Z_STRVAL_PP(const_name), Z_STRLEN_PP(const_name), return_value, NULL, 0 TSRMLS_CC)) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", Z_STRVAL_PP(const_name));
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", Z_STRVAL_PP(const_name));
|
||||||
RETURN_NULL();
|
RETURN_NULL();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue