For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2007 > Conflicting function IDs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Conflicting function IDs
Hannes Magnusson

2007-11-23, 8:01 am

Hi all

We finally have a problem with conflicting IDs.

In PHP6 we have a function (in ext/unicode) named locale_get_default()
In PHP5 we have a function (in pecl/intl) also named
locale_get_default() (compatibility layer (I guess) for ext/unicode).

Both of these, according to our naming conventions, should get the ID
"function.locale-get-default" :|

Now. We are in luck. pecl/intl has dual interface (OO&procedural) so
the pecl/intl function should have the ID locale.getlocale
(<classname>.<methodname> ) according to the proposed OO skels :D

These function ID conventions however could be a problem in the future
so its something worth looking into, I think.

-Hannes
Edward Z. Yang

2007-11-23, 7:01 pm

Hannes Magnusson wrote:
> In PHP6 we have a function (in ext/unicode) named locale_get_default()
> In PHP5 we have a function (in pecl/intl) also named
> locale_get_default() (compatibility layer (I guess) for ext/unicode).


Wouldn't that cause problems for people wanting to use intl and PHP6?
(or do namespaces also work on built-in functions?)

--
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com