Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82483 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44341 invoked from network); 11 Feb 2015 16:56:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 16:56:39 -0000 Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.182 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.217.182 mail-lb0-f182.google.com Received: from [209.85.217.182] ([209.85.217.182:47229] helo=mail-lb0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/20-41131-5C98BD45 for ; Wed, 11 Feb 2015 11:56:37 -0500 Received: by mail-lb0-f182.google.com with SMTP id f15so3602743lbj.13 for ; Wed, 11 Feb 2015 08:56:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=zSE7kMqSq5mn9b4LB8n/hSsv1oyFT6UYS+rjD0ylpMU=; b=Af795E3T8JfvhVpph+0aFxZpzGvmLd27atzIXivnA47Jb76ttERaH6pjjq3JfPXRDU SIi23hHPxkj7cTttHNJEalBwfGds/fOYzsSpVRxqZGl9mymD98AY+OG0veqQ69Vi4TXS 2NVnG4mgQZIIOijclsy/JUxLopHVk0q69InnSYlj/HcXjEEm5KQpA/BrC8cr2vTQ7gUo oCpYnp7UyTWNoM+Ets50WmQTfVADw7vXM+WU3+wiUK/mR55b34NW7znH/nyDEVPoxCNO b8dfySXthaByjwjAtmx4a6f8wbzKyN0i/AR92e4fP//aetGBZUaUEBTffgVakI2nHxuZ rDtw== MIME-Version: 1.0 X-Received: by 10.112.181.231 with SMTP id dz7mr28081124lbc.47.1423673793892; Wed, 11 Feb 2015 08:56:33 -0800 (PST) Sender: mike.php.net@gmail.com Received: by 10.115.1.132 with HTTP; Wed, 11 Feb 2015 08:56:33 -0800 (PST) Received: by 10.115.1.132 with HTTP; Wed, 11 Feb 2015 08:56:33 -0800 (PST) In-Reply-To: References: Date: Wed, 11 Feb 2015 17:56:33 +0100 X-Google-Sender-Auth: EoDR6hoTAtVguK_b74N7kFj3KxI Message-ID: To: reeze Cc: PHP Internals , Yasuo Ohgaki , Xinchen Hui , Dmitry Stogov Content-Type: multipart/alternative; boundary=001a11c37120c2d5c2050ed2e2ca Subject: Re: [PHP-DEV] Re: Proposal: Introduce a new macro:php_error_docref_ex() From: mike@php.net (Michael Wallner) --001a11c37120c2d5c2050ed2e2ca Content-Type: text/plain; charset=UTF-8 Why not leave it as it is? I mean, really, those five strokes? Wherever it's going, I'm -1 on changing the meaning of the existing macro. On 11 Feb 2015 16:01, "reeze" wrote: > Hi, > > On 11 February 2015 at 19:15, Dmitry Stogov wrote: > > > Hi, > > > > I don't think it'll improve something, and may complicate merging from > > PHP5 (this is not a big issue, because merging is already not simple). > > > > > Yes it just makes code looks a little better and cleaner. > > I didn't realized the merging problem. that might affect diffs which > changes php_error_docref() > > > > In any case, the names should be swapped, to be used as: > > > > php_error_docref(E_WARNING, "recursion detected"); > > > > or > > > > php_error_docref_ex(NULL, E_WARNING, "recursion detected"); > > > > Yes I prefer this too. > > But considering the merging problem, I think I should hold this idea of > update all of those calls. > > We may provider a simple version with default null docref for external > extesions, but I didn't have proper name for that. > > > > > > > > also macros with __VA_ARGS__ may be not portable, s it should be > > implemented differently. > > > > Yes I should use ##__VA_ARGS__ instead. > > > > Thanks. Dmitry. > > > > > > > > On Wed, Feb 11, 2015 at 11:41 AM, Xinchen Hui wrote: > > > >> Hey: > >> > >> On Wed, Feb 11, 2015 at 4:35 PM, Yasuo Ohgaki > wrote: > >> > Hi all, > >> > > >> > On Wed, Feb 11, 2015 at 5:21 PM, reeze wrote: > >> >> > >> >> I think it is a cleanup, it works but there are too many duplication. > >> it > >> >> is the time to make the code clean and easier to understand. > >> > > >> > > >> > I've never used other than NULL also. > >> > Everyone is going to remove TSRM macros, it's right time to clean up. > >> fine, if you want to change.. > >> > >> please, _ex means extending, > >> > >> so the name should not be php_error_docref_ex... > >> > >> thanks > >> > > >> > Regards, > >> > > >> > -- > >> > Yasuo Ohgaki > >> > yohgaki@ohgaki.net > >> > >> > >> > >> -- > >> Xinchen Hui > >> @Laruence > >> http://www.laruence.com/ > >> > > > > > > > -- > Reeze Xia > http://reeze.cn > --001a11c37120c2d5c2050ed2e2ca--