Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101606 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67354 invoked from network); 17 Jan 2018 18:00:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2018 18:00:34 -0000 Received: from [127.0.0.1] ([127.0.0.1:12030]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 8B/BE-12394-24F8F5A5 for ; Wed, 17 Jan 2018 13:00:34 -0500 Authentication-Results: pb1.pair.com header.from=info@eordes.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=info@eordes.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain eordes.com from 209.85.128.181 cause and error) X-PHP-List-Original-Sender: info@eordes.com X-Host-Fingerprint: 209.85.128.181 mail-wr0-f181.google.com Received: from [209.85.128.181] ([209.85.128.181:33255] helo=mail-wr0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/BE-12394-A4C8F5A5 for ; Wed, 17 Jan 2018 12:47:54 -0500 Received: by mail-wr0-f181.google.com with SMTP id p6so19832529wrd.0 for ; Wed, 17 Jan 2018 09:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eordes-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=Mc41QRWbm2IkEdvGc+VGZVKmpY4bT2flpBknPw/4D2s=; b=ten8O6X4QlipsmjUTUZhIPLNXlcOnCNVRjuNgZtiH4+EC7HL0yaOzX/FZfG/d9T0l4 5cZO1oJODRjqGTwcqZd80N7qf9vl9tXXufgHzuR84HpOgT0CfATTPiIRNWu4ETOc2d+g yNfzkb2hrICrQiz3N5tMR7a66AORmoGoOZi0+nY9x5zxkmc+AMF9Qw3VB7J5lH0xcIn7 yoVfB8eb0la0fUTFE9LJDoxZtAukVUCCBno1M4JQldzg88UDkR69cGuALFb3HWiHHOKp bZzFHFoXPwzEEZqM/onp8xg9liwHSnyuy5SDrfosqLbHrBj6VwxHpohJfkxQLGK1AF1v GKdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=Mc41QRWbm2IkEdvGc+VGZVKmpY4bT2flpBknPw/4D2s=; b=GrPcenN3nmfg5XV12jYTIk8HxHi/Vxm+tR+9S5kKGO1XM4WLoqcxFy2tfQ9SNagL6u OXB+9EsMaEeykSLLKSQa5Fo0vuox0gWJBn5fLLahCoZwabmpBB/eA257EpuMig+hCBQE P2bv8xA8ZjD3qgYm+OZH7eCefKHBOjeww04U2pQwnr+zFcB5Y/Q/WfjzvqkAewfqE8r9 csrrIRqeJOd3sOB16KzWEmhvtMdWgPPF8E4pW+eT/H6AStrPd0LfYhy7JwToARRJ4ujL Fyt3HPK4xf4oXcHvIK46nG7BZDGmVKmyRvfex3qhrTuVllzeUUaY1D7MxYnBFXMBLb4w i6fQ== X-Gm-Message-State: AKwxytfvWz63hwfwlegFENSWLXcK5aYYPrcoawShN+mEK+0W5GGvNuwX C5//xEAKpvYhi9vXIO38nhVZ3JiJ X-Google-Smtp-Source: ACJfBosXunrEKGjs3dJcoHx+sFJFOywn4hSMp13bcdJ1ns1YRhbZhSPPJBX8OOxZV4lm8/5fDLxyOw== X-Received: by 10.223.157.196 with SMTP id q4mr3172209wre.55.1516211271425; Wed, 17 Jan 2018 09:47:51 -0800 (PST) Received: from [192.168.0.20] (static-144-248-27-46.ipcom.comunitel.net. [46.27.248.144]) by smtp.gmail.com with ESMTPSA id y23sm7763126wrc.24.2018.01.17.09.47.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 09:47:50 -0800 (PST) To: internals@lists.php.net Message-ID: <6fac0482-93fe-b15f-632c-1058232abcf0@eordes.com> Date: Wed, 17 Jan 2018 18:47:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: es-CO Subject: [RFC] [DISCUSSION] Improve null-coalescing operator (??) adding empty check (??:) From: info@eordes.com (Lito) Related with Request #75833 https://bugs.php.net/bug.php?id=75833 From PHP 7 null-coalescing operator is a great option to avoid a previous exists check with isset. But I think that this comaparison can be improved adding a ternary operator like ??: and check also empty values. Example: --------------------------------------