Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52430 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11557 invoked from network); 17 May 2011 15:02:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2011 15:02:42 -0000 Authentication-Results: pb1.pair.com header.from=confik@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=confik@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: confik@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:46700] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/53-27887-11E82DD4 for ; Tue, 17 May 2011 11:02:41 -0400 Received: by gyb11 with SMTP id 11so201677gyb.29 for ; Tue, 17 May 2011 08:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=6ctsda3d2+7wHNAlq3LydL9+aYG0pn/8uZarMI3RB7A=; b=BJnoMLeWrovvP613qUQEFspycb4Zuq8e9cIES0kD9d2ymBRXCuk7/sloURw9XwZd+6 Naqctmn5lvNZRDfN9GnxSjHabCkEGRZcBEAcTL6jPjxlGO8c5kUp1mKELY3J+biQaB7S ISZoaqUj7p4SiHOJ1xX1OW5ghqktO93sXYbpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=t9e+FL3ByXBmcQYlXzJZ8URScV8GcS2704ReQIROFPQyZ497dyalp9JLAc0KW9OVcz BoNR5DwjxdXLrnU3q9FL0c2RVTPz7MNNumE1uFlxYOpRKR+fUzbcBtu765r26xiYV+1l EJZupnsARu2SCs2JNWS0oDsJQR9XewVvTkoFA= Received: by 10.91.203.5 with SMTP id f5mr502954agq.178.1305644559228; Tue, 17 May 2011 08:02:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.90.2 with HTTP; Tue, 17 May 2011 08:02:19 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 May 2011 20:02:19 +0500 Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Need karma for committing test patches From: confik@gmail.com (Alexey Shein) > A few remarks: > > * Isn't this supposed to be fixed? Was there something that triggered a > regression? As far as I can see Jani checked only case when already closed file descriptor was passed to curl_setopt. Here's the check is performed in curl_exec, i.e. in curl_setopt file descriptor was valid and at the moment of call curl_setopt it's closed/invalid. > * If this strategy is used (checking whether the resource associated with > the stored zval is valid), how about curl_multi_exec? The logic is simple - if resource is ok, then go with it, else it's changed to default stderr. Did not tested it on curl_multi_exec(), just took the failed phpt file and got it working :) > * I think a better strategy would be to just dup the file descriptor gotten > after the cast in curl_setopt, store it (instead of storing the zval) and > close it on curl handle destruction. This way we wouldn't have to worry > about zval refcounts or whether the file descriptor obtained is still valid. > Could you see if this other strategy works? (otherwise I can do it later > this week) Yes, I like your strategy, will try to do it. Also I would be happy if somebody could answer my questions because "all documentation is written in C" is not so easy to understand :) > -- > Gustavo Lopes > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Regards, Shein Alexey