Support for namespaces

This commit is contained in:
Dmitry Stogov 2007-09-28 19:53:42 +00:00
parent f32ffe9b43
commit f37e408ed8

View file

@ -4256,7 +4256,7 @@ PHP_FUNCTION(constant)
}
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));
RETURN_NULL();
}