Hi,

The proposed patch implements namespace support for constants.
It allows to declare constants in namespaces in the same way as in classes.
And these constants may be used in the same may as namespaces' functions.

<?php
namespace Foo;
const BAR = 5;
var_dump(BAR);
?>

<?php
include "foo.php";
var_dump(Foo::BAR);
?>

I am going to commit this patch on Friday.
Any objections?

Thanks. Dmitry.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to