Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73337 invoked from network); 7 Mar 2015 07:48:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 07:48:35 -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.220.43 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.43 mail-pa0-f43.google.com Received: from [209.85.220.43] ([209.85.220.43:46279] helo=mail-pa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/21-58365-25DAAF45 for ; Sat, 07 Mar 2015 02:48:34 -0500 Received: by pabli10 with SMTP id li10so57676797pab.13 for ; Fri, 06 Mar 2015 23:48:31 -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=r+qpuO0lmeJoXDWreTvBRQoSZQ5NWGjnX+MTN283l3k=; b=RO4FK5YVGFmjIW11LL3Wotx3HaQEj8a9OqYCQln4B5T3xJaf+H27OBIqnjThUzPmpy 1M+b9ghUAt0bP6CDNmgcbUnSPUPafUgR7W3T8cDpoJJbmOyF7n9cUUo2AiqirBPTasLj Xna4MGH3tVCbOP9pJmOJlN5uJ0ALEDTEA/SVbWhAL1RnBRJ7zr82KIwr8PzPL/+vr45m YlDttkMsaXAj4hpAT5sLvOXU7K3XGJB7UqTJED5/APutF8jBVTCexJdoNxGssqmzKA8y 9CcUMIbva5au/ySAWyn5p69qKQPd8cTJhmkTNx3PfgGqKJ0fO9zskSWEc8D9ehmSJ7cY hEQA== X-Received: by 10.66.124.129 with SMTP id mi1mr32094513pab.21.1425714511549; Fri, 06 Mar 2015 23:48:31 -0800 (PST) Received: from [10.205.23.44] ([117.136.0.247]) by mx.google.com with ESMTPSA id uc10sm11399998pbc.87.2015.03.06.23.48.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Mar 2015 23:48:30 -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 15:48:26 +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. thanks for reporting this. :) Nice catch, I will take care of it Thanks >=20 >=20 > Thanks, > Juan Basso