Re: [PATCH] Redirect on Error

From: Date: Tue, 26 Nov 2002 08:47:15 +0000
Subject: Re: [PATCH] Redirect on Error
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-91660@lists.php.net to get a copy of this message
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/ -------------------------------------------------------------------------

« previous php.dev (#91660) next »