]> granicus.if.org Git - php/commitdiff
Support for namespaces
authorDmitry Stogov <dmitry@php.net>
Fri, 28 Sep 2007 19:53:42 +0000 (19:53 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 28 Sep 2007 19:53:42 +0000 (19:53 +0000)
ext/standard/basic_functions.c

index 358904919a5b59f8b00b41a66498bd93a56bdb24..d3364c76399c796e0c86b5a53bf9f52106921a73 100644 (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();
        }