Johannes Schlüter wrote:
On Tue, 2008-12-09 at 10:56 +0100, Hannes Magnusson wrote:
defined() apparently doesn't work on magic constants (__LINE__,
__METHOD__, __FILE__...).
The docs don't mention this so I assume johannes found a bug he should report :)

If there is a bug it's in the docs I'd say as get_defined_constants(),
constant() and probably others don't know them either and I don't think
it's good to add special handling to a these functions. I didn't know
that's not in the docs so I didn't report but can do :-)

I fixed run-tests.php to use version id instead like you suggested earlier. :)


PHP CVS Mailing List (
To unsubscribe, visit:

Reply via email to