Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47280 invoked from network); 11 Sep 2011 20:24:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2011 20:24:10 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.53 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.83.53 mail-gw0-f53.google.com Received: from [74.125.83.53] ([74.125.83.53:49289] helo=mail-gw0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/E8-45650-7E81D6E4 for ; Sun, 11 Sep 2011 16:24:08 -0400 Received: by gwj20 with SMTP id 20so3318824gwj.12 for ; Sun, 11 Sep 2011 13:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=9Y8ERjEhGfqQ/wXP4oElsaphrMnWZjQ2mnbVWho2RiI=; b=CXymdphL8EkiZP6fsjio4fg39VUeF9HA3+6nYkfLjuePQjELkq4J3cxYB1EMflKoiS TwOaW/YiVIgKN5xDAW1HtiaB3XKmWb9451R9ZdXw4E1iaVPg1ez1pJPtC8h659o2bXau xK087Jjl5ZjUxhqzmJTSGbJxDPO1fme++8k/I= MIME-Version: 1.0 Received: by 10.236.139.138 with SMTP id c10mr22490906yhj.62.1315772644991; Sun, 11 Sep 2011 13:24:04 -0700 (PDT) Received: by 10.147.99.13 with HTTP; Sun, 11 Sep 2011 13:24:04 -0700 (PDT) In-Reply-To: <4E6D1340.6010408@elitehosts.com> References: <4E6B9466.6060608@elitehosts.com> <4E6D1340.6010408@elitehosts.com> Date: Sun, 11 Sep 2011 22:24:04 +0200 Message-ID: To: Avi Brender Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PATCH]#55651 From: pierre.php@gmail.com (Pierre Joye) hi! Please upload the patch in the bug tracker as well. It would be also better to use a more verbose name. FTP_OPT_USEPASVADDRESS is somehow cryptic. Laruence's comment is still valid, the zval should be converted if it is not int or bool. Btw, could you test cases as well please? Cheers, On Sun, Sep 11, 2011 at 10:00 PM, Avi Brender wro= te: > Hi, > > I've updated the patch - please see attached. > > Avi Brender > Elite Hosts, Inc > www.elitehosts.com > ------------------------------------------------ > WARNING !!! This email message is for the sole use of the intended > recipient(s) and may contain confidential and privileged information. Any > unauthorized review; use, disclosure or distribution is prohibited, and > could result in criminal prosecution. If you are not the intended recipie= nt, > please contact the sender by reply email and destroy all copies of the > original message. This message is private and is considered a confidentia= l > exchange - public disclosure of this electronic message or its contents a= re > prohibited. > > On 09/11/2011 10:53 AM, Pierre Joye wrote: >> hi, >> >> A simple test if it is IS_BOOL or IS_LONG should be enough, both types >> use the the long value (convert_to_boolean_ex is slow and duplicate >> the zval while it is not necessary). Then test > 0 instead of simply >> assigning the value. >> >> On Sun, Sep 11, 2011 at 5:59 AM, Laruence wrote: >>> Hi: >>> =A0 =A0after a quick look, =A0I have one suggestion, >>> =A0 =A0if the (Z_TYPE_P(z_value) !=3D IS_BOOL), you should call >>> convert_to_boolean_ex to convert it to a boolean >>> =A0 =A0otherwise, people can not use a interge 1 as a true flag. >>> >>> =A0 =A0thanks >>> >>> 2011/9/11 Avi Brender : >>>> Hi, >>>> >>>> I've submitted bug #55651 along with a patch to implement a fix (also >>>> attached) for the passive FTP mode issue. I was hoping that someone >>>> could >>>> review the bug report and consider the patch for inclusion in future P= HP >>>> releases. >>>> >>>> Thanks so much! >>>> >>>> Avi Brender >>>> Elite Hosts, Inc >>>> www.elitehosts.com >>>> >>>> -- >>>> PHP Internals - PHP Runtime Development Mailing List >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>> >>> >>> >>> -- >>> Laruence =A0Xinchen Hui >>> http://www.laruence.com/ >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> >> >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org