Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84395 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65359 invoked from network); 7 Mar 2015 05:23:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 05:23:36 -0000 Authentication-Results: pb1.pair.com header.from=jrbasso@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jrbasso@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.180 as permitted sender) X-PHP-List-Original-Sender: jrbasso@gmail.com X-Host-Fingerprint: 209.85.223.180 mail-ie0-f180.google.com Received: from [209.85.223.180] ([209.85.223.180:45002] helo=mail-ie0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/30-58365-55B8AF45 for ; Sat, 07 Mar 2015 00:23:34 -0500 Received: by iecar1 with SMTP id ar1so90819193iec.11 for ; Fri, 06 Mar 2015 21:23:30 -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=lS5vyhaI0xYMFPlGrZz0GSxdRZqLd7+Sw7tpkXyYPGA=; b=InyWDnLocQLqLj+MDd9S85zBUlVSxsuTO/GIN3BzWCYGFl9FwoIusX8uihZ5lZwZEh tUSDEVOHV5ZdMfRubVe3wotZKdWpkz3NJmNYSEIeayi3pQbTh9+AcOTlFJ8a9CkkFmuY VYj0ijDoS4hcO8919Wv9mFIZBG804qUtalWC4JGQAb5OD2AAf2GJ0nA/WvJaa4d6rwa1 XUjZ329bqMF/ozPHIaCLVC2SaV7xq7ChWrotDv1Bep9o7lcK+PEOjgmo/RxCc3UdMr41 ib8cvVRdLMmfGHlMFouuWIf0BoE7Wxe/Bl2TbPFpSMITTdlKaZHPLJJJ/cCBhSMvEQpw gkvQ== MIME-Version: 1.0 X-Received: by 10.50.7.1 with SMTP id f1mr32674501iga.8.1425705810338; Fri, 06 Mar 2015 21:23:30 -0800 (PST) Received: by 10.64.30.115 with HTTP; Fri, 6 Mar 2015 21:23:30 -0800 (PST) Date: Sat, 7 Mar 2015 00:23:30 -0500 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=089e0122edb8612a730510ac008f Subject: Arrays being generated with length and no content on master From: jrbasso@gmail.com (Juan Basso) --089e0122edb8612a730510ac008f Content-Type: text/plain; charset=UTF-8 I was testing CakePHP framework with PHP 7 and some tests were failing. Digging into the issue I found that using compact in a certain way can cause PHP to create an array with length but no content inside. I reported and added some examples on how to reproduce on https://bugs.php.net/bug.php?id=69198 I'm sending this email more to bring the attention that this can be a potential issue on the engine since other places can have the same issue or even non-internals extensions can generate this kind of weirdness. I wonder if doing this can cause some security issue. Thanks, Juan Basso --089e0122edb8612a730510ac008f--