Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37837 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80020 invoked from network); 23 May 2008 18:47:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2008 18:47:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 209.85.146.182 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 209.85.146.182 wa-out-1112.google.com Received: from [209.85.146.182] ([209.85.146.182:60742] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/D1-03677-73117384 for ; Fri, 23 May 2008 14:47:19 -0400 Received: by wa-out-1112.google.com with SMTP id v27so769505wah.17 for ; Fri, 23 May 2008 11:47:16 -0700 (PDT) Received: by 10.115.73.20 with SMTP id a20mr2175936wal.142.1211568436533; Fri, 23 May 2008 11:47:16 -0700 (PDT) Received: from Macintosh-5.local ( [12.51.40.234]) by mx.google.com with ESMTPS id m29sm8187248poh.4.2008.05.23.11.47.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 May 2008 11:47:15 -0700 (PDT) Message-ID: <48371131.50003@gravitonic.com> Date: Fri, 23 May 2008 11:47:13 -0700 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Steph Fox CC: Antony Dovgal , internals@lists.php.net References: <7d6e34d80805191240k64cb1ba6k3e8f7a50ddf068c@mail.gmail.com> <4831F27B.7030001@suse.de> <296949B4-D328-49FE-968B-4942B28FE869@pooteeweet.org> <7d6e34d80805191454m69614624v7a05037fa947328e@mail.gmail.com> <698DE66518E7CA45812BD18E807866CE019F60DE@us-ex1.zend.net> <34.64.28995.1BE23384@pb1.pair.com> <02e701c8bab7$19a3dd10$4401a8c0@foxbox> <4833FD5B.2010308@daylessday.org> <003f01c8bb33$81ae5030$4401a8c0@foxbox> <48346ED3.9040505@gravitonic.com> <001501c8bbf6$5702cf50$4401a8c0@foxbox> In-Reply-To: <001501c8bbf6$5702cf50$4401a8c0@foxbox> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum] From: andrei@gravitonic.com (Andrei Zmievski) UG(ascii_conv) is for the format string, not the arguments. The warning is thrown by this code: convert_to_string_ex(argv[currentarg]); It should check the arg type and return with a warning if it's Unicode. -Andrei Steph Fox wrote: > It does - 'UG(ascii_conv)' - but sometimes there's a unicode-to-binary > conversion warning thrown by that, and then you have to cast the > variable to a binary empty string to suppress the warning before you > assign the pack() result to it. (See ext/phar/tests/phar_test.inc.) > There are similar issues with unpack(), and with fwrite()/fread() and > friends when dealing with a purely binary string. > > What concerns me at this point is that we could and should be telling > PHP users how to future-proof their code during the move from PHP 4 to > PHP 5. If we can get a fix on that now and get word out, we'll have made > their future migration path *much* smoother. > > - Steph