Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1437 invoked from network); 7 Mar 2015 15:52:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 15:52:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=jrbasso@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jrbasso@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: jrbasso@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:39562] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/80-29230-ACE1BF45 for ; Sat, 07 Mar 2015 10:52:43 -0500 Received: by iecat20 with SMTP id at20so39516739iec.6 for ; Sat, 07 Mar 2015 07:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=t1R8LxjpicOj+gFUxNWVm1oZGobq0lk7owFazx2ndvk=; b=Xvf5rjrm0cG9LBfx2hcIg7gwbv9McqlH7Jp8AIK1qQ2YgrV8Byvwss3Nyu8Xb6hK2a JgGINPZfV3PQEp02kelC1USLnTE9GrjWfJZOmtzx3wkPnuy+WCOOReGcUOPO7MCbXGXo /Qyt71M9Ym2LCIKXMdQjqwzFjfsbdB4FWU0KIagJvFQPlYvRR0JBNjcaIEPIyCtkhqgc Wb9IWwR5IV6kpVduTUFHvfkTcW8T1htLGQtuYfnQfZ94iEXem8EzGxg17RwBduYDkGyL 4LdolU9neJ2gLu8CfKnlOQ2objWRxc92MVK1POQH9D1+uCPHWaEggiylkENsKLSj+XON oHBg== MIME-Version: 1.0 X-Received: by 10.107.156.19 with SMTP id f19mr35845269ioe.45.1425743560179; Sat, 07 Mar 2015 07:52:40 -0800 (PST) Received: by 10.64.30.115 with HTTP; Sat, 7 Mar 2015 07:52:40 -0800 (PST) In-Reply-To: References: Date: Sat, 7 Mar 2015 10:52:40 -0500 Message-ID: To: Xinchen Hui Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1141b9ac7206870510b4ca88 Subject: Re: [PHP-DEV] Arrays being generated with length and no content on master From: jrbasso@gmail.com (Juan Basso) --001a1141b9ac7206870510b4ca88 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Great, that was quick. Tested the change with CakePHP tests and it passes now. Thank you. On Sat, Mar 7, 2015 at 3:50 AM, Xinchen Hui wrote: > Hey=EF=BC=9A > > > On Mar 7, 2015, at 1:23 PM, Juan Basso wrote: > > > > 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=3D69198 > > > > 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 issu= e > or > > even non-internals extensions can generate this kind of weirdness. I > wonder > > if doing this can cause some security issue. > > > > > Should be fixed now > > Thanks > > Thanks, > > Juan Basso > --001a1141b9ac7206870510b4ca88--