From: [EMAIL PROTECTED]
Operating system:
PHP version: 5CVS-2007-10-01 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: defined() on constant with namespace prefixes tries to load
class
Description:
------------
i don't know if it's right to expect a class named foo here, but anyway
it should be possible to check for a constant within a namespace
Reproduce code:
---------------
<?php
namespace foo;
var_dump(defined("foo::BAR"));
Expected result:
----------------
false
Actual result:
--------------
Fatal error: Class 'foo' not found in ... on line 3
--
Edit bug report at http://bugs.php.net/?id=42820&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42820&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42820&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42820&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42820&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42820&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42820&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42820&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42820&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42820&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42820&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42820&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42820&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42820&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42820&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42820&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42820&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42820&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42820&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42820&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42820&r=mysqlcfg