ID:               43046
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lars at strojny dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: Gentoo Linux
 PHP Version:      5.3CVS-2007-10-19 (snap)
 New Comment:

The reason for DIRECTORY_SEPARATOR is that the value is platform
dependent, the namespace separator isn't.


Previous Comments:
------------------------------------------------------------------------

[2007-10-19 23:10:58] lars at strojny dot net

Sorry, changed summary by accident

------------------------------------------------------------------------

[2007-10-19 22:40:13] lars at strojny dot net

Could help to keep a codebase cleaner and better readable. Take a look
at:
$path = str_replace('::', DIRECTORY_SEPARATOR, $class_name);
vs.
$path = str_replace(NAMESPACE_SEPARATOR, DIRECTORY_SEPARATOR,
$class_name);
is - in my opinion - easier to understand and better to read.

------------------------------------------------------------------------

[2007-10-19 22:32:22] lars at strojny dot net

Sorry, wrong version.

------------------------------------------------------------------------

[2007-10-19 22:30:18] [EMAIL PROTECTED]

Why is this useful?

------------------------------------------------------------------------

[2007-10-19 22:21:59] lars at strojny dot net

Description:
------------
A constant for the namespace separator should be defined. I would
propose to define NAMESPACE_SEPARATOR to "::", similiar to
DIRECTORY_SEPARATOR.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43046&edit=1

Reply via email to