Functions potential name collisions
arhak - September 29, 2008 - 13:34
| Project: | Parsing API |
| Version: | 6.x-2.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
it would be nice if the set of functions provided by this module were behind a namespace (might be as simple as a common function name prefix)
because there is the potential risk of collision with other php libraries (since the name are very short and human readable)
of course, this would imply a major refactor and as such a backward incompatibility

#1
Easily done with a class but I kinda like not having to type the extra chars to call a class function ;) I did do an extensive search for these function names in drupal projects and none exist. I also know none of these functions exist in any Pear classes, phpclasses.org, or hotscripts.com classes either because I've been using these for over 7 years and have never had any collisions.