Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36414 invoked from network); 11 Feb 2015 15:01:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 15:01:42 -0000 Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:45376] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/58-22055-4DE6BD45 for ; Wed, 11 Feb 2015 10:01:41 -0500 Received: by mail-wg0-f50.google.com with SMTP id l2so3971118wgh.9 for ; Wed, 11 Feb 2015 07:01:37 -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:from:date:message-id :subject:to:cc:content-type; bh=hbooSUUCF8TLoPxxlj5IeXWjmQ90sSPLWC6/I+0uE28=; b=Nhi5pgvM8qRiarePQMhxZejkA/A7G0r42lK6mUoAZ28WkExlecUXilF94X0UNiL6jI lDK39l9ZDfMZuMyjcyQmm8+PIgwpp5FPQRGMzGiKTCppMI9BzE8ssJCDhQKeB/y+A4Mm JA6BsiVnC7FRucyQVih+262DBbYXCqbGMzvLtQrKymYUrYduXIdybZ7EYVTcJgvgLClJ AzYijLQv8b8ex5pXyNLMF3W6eLfCHImQHz5mdOWrTo3mGtR1buZPcI3orSBhUL4fTXPq ZKSQWzuKxTIwrtU9b0v00SPCiuGH/IHNd23qFtdixGzFYYme+6rsSNzAbmcY0PXaSDzX tNWQ== X-Received: by 10.181.13.148 with SMTP id ey20mr6315311wid.79.1423666895907; Wed, 11 Feb 2015 07:01:35 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.194.193.5 with HTTP; Wed, 11 Feb 2015 07:01:14 -0800 (PST) In-Reply-To: References: Date: Wed, 11 Feb 2015 23:01:14 +0800 X-Google-Sender-Auth: zzCXnmJRbe_umJkt1sSbo3c4yAA Message-ID: To: Dmitry Stogov Cc: Xinchen Hui , Yasuo Ohgaki , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d043c82689bf318050ed147ba Subject: Re: Proposal: Introduce a new macro:php_error_docref_ex() From: reeze@php.net (reeze) --f46d043c82689bf318050ed147ba Content-Type: text/plain; charset=ISO-8859-1 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 --f46d043c82689bf318050ed147ba--