Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8763 invoked from network); 19 Jul 2012 21:33:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2012 21:33:08 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:52899] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/AA-18983-31D78005 for ; Thu, 19 Jul 2012 17:33:07 -0400 Received: by lbgc1 with SMTP id c1so4747896lbg.29 for ; Thu, 19 Jul 2012 14:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=piSzXq907J6L5BOJCSDneqNvvkaWOQGjywWSdGOnmGg=; b=bJQA29+xHhHM6QCfJzuirA/Kzzy96uR0cGhxrEpMhq+m9qvRLD0WnsiD8ny4dZHebT RtcWRsoxqqRVQOnwZKYk+0SpIbJZKup/N4v+aHSypNLW70/0IrQqD5lv3fEZtGBtkLdD LnM62mkwqA3D/vVidlab+VLU5avKUM0pF07QtLqen5Ib7giv7Cxnt5HWiBoZ9EQZbCYi tJwez0shggrhGqBa0b38PmyR42Ma8+U2Y6pQTG5/r8WsH0l4Wg4HeRAOPqwnNUoKjosg RPTGe6qLn2eaoxAZwXz60XrQP8QjhaHGj2IHFmiWzgW7NWNqYbC8fr/aYKuFvxwAD16d cH1w== MIME-Version: 1.0 Received: by 10.152.106.233 with SMTP id gx9mr3672586lab.48.1342733584358; Thu, 19 Jul 2012 14:33:04 -0700 (PDT) Received: by 10.152.114.70 with HTTP; Thu, 19 Jul 2012 14:33:04 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Jul 2012 23:33:04 +0200 Message-ID: To: Sara Golemon Cc: Gustavo Lopes , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] zend_parse_parameters() improvements From: nikita.ppv@gmail.com (Nikita Popov) On Thu, Jul 19, 2012 at 11:23 PM, Sara Golemon wrote: > Then I'm not sure what problem you're trying to solve either. :/ This solves two problems: a) Integer parameters cannot currently be skipped using NULL. This issue comes up every now and then. E.g. see https://github.com/php/php-src/pull/133. b) If you need more complex argument handling you currently have to fetch the value as z and then use some convert_to_* function. But those convert_to_* functions behave differently than zpp. So a function for parsing a single parameter is exposed too. Nikita