On Tue, 26 Nov 2002, Marcus B�rger wrote:
> For example:
> php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error %d", error)
> would convert to:
> php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP-42", error)
>
> and in the init code we would register these errors:
> register_error_message("PHP-42", "Error %d")
>
> and now translation tables for these error messages are possible.
Bloat alert! Do you have any idea how expensive those hash looks ups
are? And I would _never_ want to maintain that for any code I write.
And how would you handle clashes in here?
It's a bad idea.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php