Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82468 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6150 invoked from network); 11 Feb 2015 11:16:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 11:16:05 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.169 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.169 mail-vc0-f169.google.com Received: from [209.85.220.169] ([209.85.220.169:57310] helo=mail-vc0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/23-22055-EE93BD45 for ; Wed, 11 Feb 2015 06:16:00 -0500 Received: by mail-vc0-f169.google.com with SMTP id kv19so913041vcb.0 for ; Wed, 11 Feb 2015 03:15:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=qXvtvz3n2H+DJLhHTi56KfyKp7o8xldC7ZMq0wV9uqM=; b=fa5wxT62bI+ccwlS28f5xUOl6CJNevQJEM6o+nSh3igiCoqfahx1EfaLHnU/2rnmNG 3Gpa3XwumZZ6UCB5WBUuEjdYNmrEUirJ+i/49XednAroax8NGa0Fx3gvA3uHlCP0ns1e 5xCoFgEVtEDiU4wvCcQQD3mHJ3Ox3cFUdt+noc61CFPi87gNHNUTrx/CjT0J2bgP2keo wTghCjoL2Cf6PV3SGz/Posp7fAgAlPGtWxgLJbUmJsXSv0Zo7pp3mmyu48dEmrq926CO hnaIQVEhgqyoM4CvZJfoNCppazMSbjBFnaxyUA1REM5xt/Cf9iejXuGAI8WGeYtnTO6g NzBQ== X-Gm-Message-State: ALoCoQlO8UWWjSizYgdT5n6JZ1ZJQHaUe2sslWjCdnRRlNujec8708E7qXTWWkEBCOC8aLfjCfx3zran4l+aJE60crn4WWbG9zfXVIDC9bbkYw9nPJ/9tL0Bb2kbHmgHiNIkZkT2nxdQyr4n/0ggohVUraQhjQoxtA== MIME-Version: 1.0 X-Received: by 10.220.5.195 with SMTP id 3mr18283452vcw.21.1423653355447; Wed, 11 Feb 2015 03:15:55 -0800 (PST) Received: by 10.52.74.73 with HTTP; Wed, 11 Feb 2015 03:15:55 -0800 (PST) In-Reply-To: References: Date: Wed, 11 Feb 2015 15:15:55 +0400 Message-ID: To: Xinchen Hui Cc: Yasuo Ohgaki , reeze , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c3ef8088fd43050ece2016 Subject: Re: Proposal: Introduce a new macro:php_error_docref_ex() From: dmitry@zend.com (Dmitry Stogov) --001a11c3ef8088fd43050ece2016 Content-Type: text/plain; charset=UTF-8 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). 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"); also macros with __VA_ARGS__ may be not portable, s it should be implemented differently. 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/ > --001a11c3ef8088fd43050ece2016--