Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81706 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96682 invoked from network); 3 Feb 2015 13:20:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 13:20:26 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.169 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.169 mail-we0-f169.google.com Received: from [74.125.82.169] ([74.125.82.169:50137] helo=mail-we0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/1C-20608-91BC0D45 for ; Tue, 03 Feb 2015 08:20:26 -0500 Received: by mail-we0-f169.google.com with SMTP id u56so44930252wes.0 for ; Tue, 03 Feb 2015 05:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2oMHc4izfrwOx25yaemhdVa0lTaNtZB/L/S5lnSp064=; b=tiSHkozNR6uaSU7J4ALwM6V4HI0P8i50+w6GT4BK1I86CKsWZGyXnqNTgu1QW+XBOZ nahBDVrfOTO/9PUGoGslphV3mhFRbSUjISVxSIdbuTloh+WsnjRforgPPwkYlPFaZy6p WyBYExXmfyOjSq4ZpZlXeS9zdRwYyCHsCrFUKyii97leZSoJK3Luu1npXVRjw2JbmRBS ajG86d13C6AEEfWfHUOjmhstWSc+JX4LVQxFvXV6G1upNnyZyROCeIAJDjxgZpdtM/zs 0cei6EXIfRCB4qVwQRQQfMFLD2hpYBeck9eEMVAAY13UY7h8FjM5T1s4O2TxTKWVJMiE PMYw== MIME-Version: 1.0 X-Received: by 10.194.236.200 with SMTP id uw8mr55253640wjc.10.1422969622445; Tue, 03 Feb 2015 05:20:22 -0800 (PST) Received: by 10.216.50.139 with HTTP; Tue, 3 Feb 2015 05:20:22 -0800 (PST) Date: Tue, 3 Feb 2015 13:20:22 +0000 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Zero-fill right shift. From: leight@gmail.com (Leigh) Hi list, How do we feel about a zero-fill right shift operator? PHPs current right shift operator preserves signage, but this is not always desirable. I propose the same syntax as JavaScript for this: >>> php -r 'var_dump(-256 >> 8);' int(-1) php -r 'var_dump(-256 >>> 8);' int(16777215) This will introduce a T_SHRZF token and corresponding opcode. Targeting PHP 7.