Constans in namesapces

From: Date: Wed, 22 Aug 2007 09:02:01 +0000
Subject: Constans in namesapces
Groups: php.internals 
Request: Send a blank email to internals+get-31827@lists.php.net to get a copy of this message
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.

« previous php.internals (#31827) next »