Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76256 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55159 invoked from network); 30 Jul 2014 02:38:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2014 02:38:04 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-la0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:41920] helo=mail-la0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/03-29261-A8A58D35 for ; Tue, 29 Jul 2014 22:38:03 -0400 Received: by mail-la0-f54.google.com with SMTP id hz20so402613lab.13 for ; Tue, 29 Jul 2014 19:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=orvieLoXXk8pRNIKJJU6vBnB5TbS6KxaKTrjrOla8fA=; b=LEvwJM9hwEfommjAkCSakh7LjYZqpKRoOg2hIv++9bBka5sSbKI+yhXhOtG96eQQfT DR7KCC/46smaUBm2k//Drb7oaebANxidWb5GYCsPUdbmO3yLgDk5rgcGW8zb6MKuDc+h jm+pjOJBSefEN83PGhO5citffxfhAsKW1dKgEFysrNXOK1U1IVDHVJGLR9443iHud+ue x4xOetjP0T5a5+3ic4LOukOD4H9UM8ch9PrmBpu7KT5VJkS7Je0e4sEOpnlr2crkZoZE AqAUj+Otid1YGci5oJk8prXYT/Py2gnxwriG0IU8NVAuGPU9jA+3OtxBdy0XC8Lpdf7M dI+A== X-Received: by 10.152.88.39 with SMTP id bd7mr800472lab.89.1406687894609; Tue, 29 Jul 2014 19:38:14 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.214.228 with HTTP; Tue, 29 Jul 2014 19:37:34 -0700 (PDT) Date: Wed, 30 Jul 2014 11:37:34 +0900 X-Google-Sender-Auth: nC-aJU1wd04IaQ4TAgBLSEopEpE Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c353ca44a7ef04ff600c8f Subject: signed long hash index for PHP7? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c353ca44a7ef04ff600c8f Content-Type: text/plain; charset=UTF-8 Hi all, Current Zend hash uses ulong for numeric array indexes. This causes bug #67693 https://bugs.php.net/bug.php?id=67693 Signed/unsigned mismatch is the root cause of this bug. Since PHP's int is signed by default, it might be better to change Zend hash index to signed long. I would like to hear comments who understand Zend internals. If there aren't issues, we may have signed long index for PHP7. I also would like to hear comments for possible fix in released versions. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c353ca44a7ef04ff600c8f--