Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12965 invoked by uid 1010); 28 Sep 2006 17:20:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12946 invoked from network); 28 Sep 2006 17:20:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2006 17:20:46 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:4863] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/3F-21168-8140C154 for ; Thu, 28 Sep 2006 13:19:20 -0400 Received: (qmail 96995 invoked by uid 98); 28 Sep 2006 17:19:20 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 (clamdscan: 0.88.4/1948. Clear:RC:1(127.0.0.1):. Processed in 0.066282 secs); 28 Sep 2006 17:19:20 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.066282 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 28 Sep 2006 17:19:20 -0000 Received: from 208.195.234.254 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 28 Sep 2006 12:19:20 -0500 (CDT) Message-ID: <64510.208.195.234.254.1159463960.squirrel@www.l-i-e.com> In-Reply-To: <4515B932.3080901@ybb.ne.jp> References: <4515B932.3080901@ybb.ne.jp> Date: Thu, 28 Sep 2006 12:19:20 -0500 (CDT) To: "Rui Hirokawa" Cc: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] RFC: about mb_list_encoding() /mb_list_encodings_alias_names( ), mb_list_mime_names( ) From: ceo@l-i-e.com ("Richard Lynch") On Sat, September 23, 2006 5:46 pm, Rui Hirokawa wrote: > mb_list_encodings([int type]) > type : MB_ENCODING_LISTS_ALL (returns encodings, alias, MIME) > MB_ENCODING_LISTS_ALIAS (returns alias) > MB_ENCODING_LISTS_MIME (returns mime) > MB_ENCODING_LISTS_ENTITY (returns encodings, default for I personally would prefer this solution over proliferating function names... I find it easier to understand the docs and what a function does if I don't have to flip back and forth between three functions that all do the same thing, only different. You could also consider making MB_ENCODING_LISTS_* powers of 2, so that: mb_list_encodings(MB_ENCODING_LISTS_MIME | MB_ENCODING_LISTS_ENTITY) returns the expected results. Disclaimer: I don't even know what these functions are listing/returning or why you'd want them... :-) -- Like Music? http://l-i-e.com/artists.htm