Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93782 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6956 invoked from network); 4 Jun 2016 20:32:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2016 20:32:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.174 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.161.174 mail-yw0-f174.google.com Received: from [209.85.161.174] ([209.85.161.174:36048] helo=mail-yw0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/8B-25194-FEA33575 for ; Sat, 04 Jun 2016 16:32:48 -0400 Received: by mail-yw0-f174.google.com with SMTP id x189so109718112ywe.3 for ; Sat, 04 Jun 2016 13:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=++FAfNmavoYUZDWy5gehC2zO/mTnsyd4OUvyclR7rkM=; b=DXOKwEDbIp4v3plHuS3R0pf0m7DKYU/vldWEZ5hS6zc3AWMXkEAu9spnvB6iUSamaN pMam/DEXjyor9gwlg75lFADJdhtxjcIImb/gqNwJMaebmvLTUESacINDk23RWK8tByC/ cZe7SHEIgTWUhlSjwai6qShRZiHgxXL0XlY9nD0QMVe8z38Qsvk4g4yyY/Mdhs9iv456 YToHt9WF8Xkj0jXulo4mm9LdOJ0UgxqGcUCaztaZRdRXKUrHUjjJu+RGiL0YqOJnfUzA 4TWKhBKv5Og+eo5b8b7lX6dTID+iBBiNY4h2aO35///p8w4XDCb0GRZnaB7Lbl5hwDIc 0Iaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=++FAfNmavoYUZDWy5gehC2zO/mTnsyd4OUvyclR7rkM=; b=GbbBO36K21iKPhrADTRN/V5DrLU7ifUYC7rxC33s2q767auuuRaDIQ1oh2uRYCL9dg ObbZlnyPXLLMQ7bfFn9O+EHs/j0BFtQfpwP9agKfnshOabl+Bhz4dyreGjefYZFZUWtt jeyOL2b1w3S63027ByUcvm1mgA0yKTumeDuzvuqRJCAsAT6T2Q3EOOhBOfy/nmBWmGOa bIeT7InU7NB7NhErujoLNwvYfCbyYe+fCqhT66uAPMw521jVovZrmNZY6VN7ewY+qLrR 6/yx/etm2XYlqp90WqPNn73GFsuHN7Dt09LCX+W7y+WocpOiiyZAyC6b6jBNosD2ie60 1/iA== X-Gm-Message-State: ALyK8tIzs99dGzWdv6Et0gcKFvSvsGK2Jms6qUlCaM3Zl0FLJuyJXVhg14mwqvQV1W4Ucw== X-Received: by 10.129.49.205 with SMTP id x196mr6539091ywx.223.1465072365261; Sat, 04 Jun 2016 13:32:45 -0700 (PDT) Received: from stas-air.attlocal.net (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id z2sm7090925ywd.43.2016.06.04.13.32.44 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 04 Jun 2016 13:32:44 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <009ff7f1-9d2c-d26c-208f-9f67f327cf94@gmail.com> Date: Sat, 4 Jun 2016 13:32:45 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC DISCUSSION] typeof From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I prepared my first contribution to internals: > > https://github.com/php/php-src/pull/1932 I don't think we need a core function that almost exactly duplicates the working of existing function but with a slight tweak. I do not think it is a good idea to do such things, it only produces more confusion. I mean yes, NULL may be annoying (not to me but I understand how it can be) but introducing new core function to change "NULL" to "null" and similar small tweaks and encourage people (99.99999% of which do not care) to rewrite their code does not seem beneficial to me. The extended mode seems to be a kind of pretty-printing debugging output which probably matches some use case but definitely not all of them. I don't see how these cases are common enough to be part of core. This would be completely fine as a PHP library but I don't see why it needs to be a core function. -- Stas Malyshev smalyshev@gmail.com