Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52351 invoked from network); 6 Jan 2009 20:00:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2009 20:00:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.21 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.218.21 mail-bw0-f21.google.com Received: from [209.85.218.21] ([209.85.218.21:48825] helo=mail-bw0-f21.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/5E-07052-278B3694 for ; Tue, 06 Jan 2009 15:00:50 -0500 Received: by bwz14 with SMTP id 14so20589642bwz.23 for ; Tue, 06 Jan 2009 12:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rLwqVu8EeOsaOYVOReW/5qXHxKUiwarexRAHxM/RVEw=; b=J88C1RgpvCPasITj8es8Oa2htaE71Z59tJZE2CSAgWicQX9qr1jyRA6exEXWod7+CE SvtLzz6nZu9XO6Yzv0bFuR1jroljYaYIXqb/CE0B72gfvf0kJoVq6kXEI76ddJuwEy/7 SkESL4972awxA44SWJsNor+25qe0RmdzqUzD8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RWWxZrNliw0hByXJj/6bkDAT40vVEUrUuhA0mT48BX5r+JsitHm7RLJbhQ5bPsPJRg +COeDFyKr4l3PYuWzL/x/t0cKekRBtGV1dyQvu6I02fbwNOp6acVrInGyAT5ISB5isE+ e8PR8ZpXcQl/6MWI4yKGj/qSdDvtVNtbo3UMw= Received: by 10.181.209.1 with SMTP id l1mr8610082bkq.139.1231272047379; Tue, 06 Jan 2009 12:00:47 -0800 (PST) Received: by 10.181.203.16 with HTTP; Tue, 6 Jan 2009 12:00:47 -0800 (PST) Message-ID: <7f3ed2c30901061200y6c6177d1p1b435766bbe77554@mail.gmail.com> Date: Tue, 6 Jan 2009 21:00:47 +0100 To: "Pierre Joye" Cc: "PHP Developers Mailing List" , "Dmitry Stogov" , "Stanislav Malyshev" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: [PHP-DEV] regression in the new parameter parsing API, 5.3 From: hannes.magnusson@gmail.com ("Hannes Magnusson") On Tue, Jan 6, 2009 at 18:38, Pierre Joye wrote: > hi, > > The new parameter parser introduced a regression (testing with > 5.3-cvs) on how "z!" is processed. Example code: > > if (0) { > $authns = 1; > $addtl = 1; > } > $result = dns_get_record("php.net", DNS_ANY, $authns, $addtl); > print_r($result); > var_dump($authns); > var_dump($addtl); > > With 5.2, $authns and $addtl are correctly set (zval ptr is not NULL) > but 5.3 gives NULL. Sorry to do not try to fix it myself, I sadly lack > the time to take care of that right now. Its not the API that is b0rking things, its the full rewrite of the function. z! means C NULL, not a zval IS_NULL, so the if (authns) and if (addtl) checks will only kick in if the variables were initialized. -Hannes