Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84398 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77677 invoked from network); 7 Mar 2015 08:50:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 08:50:21 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.169 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.192.169 mail-pd0-f169.google.com Received: from [209.85.192.169] ([209.85.192.169:35733] helo=mail-pd0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/B1-58365-CCBBAF45 for ; Sat, 07 Mar 2015 03:50:21 -0500 Received: by pdbfp1 with SMTP id fp1so30235550pdb.2 for ; Sat, 07 Mar 2015 00:50:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NJNrC6td6fuwvPZ4GTF+Z3wF22MkDLbu1P/bp9/0Kx4=; b=qGAZPMvpVSBQhxTP9Hdm5VRRKbmY++QbwtbULdGSrf2gTC3IOrriV5blK4nl9EdFnq Hbda32PUe8G4RQvtQhShMJyvmBTew0BCWRPyKfwndqmGEc0/FhA4rzbJLeyDxjPWMtTZ EpF/n/ZhoZ1Pb07yH6qXIX5dddtkaNr9Qn2tqccWtcQGnCs/gcjmS3YDvmkjBWaHDAZT qE2kfAzyusrspWMObcK6usrvZpwbxh5qG7OTeq3TR4xhNPqDTGeWa6ncVzskaykvP2BW beLDOAssNhsXHbFoWiBIqz2PUJHk4S0EiU1gvKgoa0YbCQWAN9WMCV1B3NmpSEkOuU8k exaA== X-Received: by 10.70.127.140 with SMTP id ng12mr7820501pdb.24.1425718218077; Sat, 07 Mar 2015 00:50:18 -0800 (PST) Received: from [10.205.23.44] ([117.136.0.247]) by mx.google.com with ESMTPSA id dm6sm11636091pdb.63.2015.03.07.00.50.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Mar 2015 00:50:15 -0800 (PST) Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12B466) In-Reply-To: Date: Sat, 7 Mar 2015 16:50:10 +0800 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Juan Basso Subject: Re: [PHP-DEV] Arrays being generated with length and no content on master From: laruence@gmail.com (Xinchen Hui) Hey=A3=BA > On Mar 7, 2015, at 1:23 PM, Juan Basso wrote: >=20 > 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. >=20 > I reported and added some examples on how to reproduce on > https://bugs.php.net/bug.php?id=3D69198 >=20 > 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 o= r > even non-internals extensions can generate this kind of weirdness. I wonde= r > if doing this can cause some security issue. >=20 >=20 Should be fixed now Thanks > Thanks, > Juan Basso