RE: [PHP-DEV] Error Codes, Langs, etc

From: Date: Tue, 26 Nov 2002 05:07:38 +0000
Subject: RE: [PHP-DEV] Error Codes, Langs, etc
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-91646@lists.php.net to get a copy of this message
Maxim (and anyone else who is interested) Shall we try to get a patch for this working then? I'm thinking perhaps starting off with an XML file defining the error messages, which is converted to a cdb for actual use. Anyone else game? John >-----Original Message----- >From: Sascha Schumann [mailto:sascha@schumann.cx] >Sent: Monday, November 25, 2002 11:29 PM >To: Shane Caraveo >Cc: john@coggeshall.org; ilia@prohost.org; 'Maxim Maletsky'; >'PHP Developers Mailing List' >Subject: Re: [PHP-DEV] Error Codes, Langs, etc > > >> cats or gettext comes to mind. > > Neither are usable, though, because PHP would need to support > multiple concurrent message catalogues on a per-thread base. > gettext/catgets associate exactly one language with each > process through the use of environment variables, so that > they cannot be used in a multi-threaded server. > > A mechanism based on the bundled cdb, for example, would be > superior in terms of speed, thread-safeness, and portability. > > - Sascha >

« previous php.dev (#91646) next »