Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54208 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94615 invoked from network); 26 Jul 2011 11:14:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2011 11:14: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.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:63350] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/F0-18504-A81AE2E4 for ; Tue, 26 Jul 2011 07:14:19 -0400 Received: by vxi39 with SMTP id 39so250584vxi.29 for ; Tue, 26 Jul 2011 04:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8v0FitHx+v+S/sRnehmBzwUe5wj6P2cMiK8VS01JBtU=; b=eNVjax54lE3NLhPMjUuQfE/pmR0iZXMU4whVna20HijeiXCTmLdqV/c//3vptb2ZwB 8zLN/mEw+YgajnJJfnDwAkfWMpUHUkL0Emz+Pb4SKNJK8THHtV3haOjHHY5QrpX8f2YI 0Y/VHYCDX60jy2dmcWXW4TgS5XvosW1y5rGLE= MIME-Version: 1.0 Received: by 10.220.181.69 with SMTP id bx5mr1398711vcb.235.1311678855512; Tue, 26 Jul 2011 04:14:15 -0700 (PDT) Sender: laruence@gmail.com Received: by 10.220.161.130 with HTTP; Tue, 26 Jul 2011 04:14:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jul 2011 19:14:15 +0800 X-Google-Sender-Auth: O4txIFPjUDNWKVFvSi415onnKI0 Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [Patches]#36944, #54556, #55211(and svn karma applying) From: laruence@php.net (Laruence) 2011/7/26 Gustavo Lopes : > Em Tue, 26 Jul 2011 06:42:50 +0100, Laruence escreveu: > >> 2011/7/25 Laruence : >>> >>> Hi: >>> =C2=A0 recently I was working on PHP bugs. >>> >>> =C2=A0 and =C2=A0submit 3 patches, >>> >>> =C2=A0 #36944 =C2=A0 =C2=A0 =C2=A0strncmp & negative len >>> https://bugs.php.net/bug.php?id=3D36944 > > Looks good, but I didn't got through it thoroughly to check the consisten= cy > of the signs. > >>> =C2=A0 #54556 =C2=A0array access to empty var does not trigger a notice >>> https://bugs.php.net/bug.php?id=3D54556 > > Won't this be affected? > > $foo[] =3D 'bar'; > no, this situation won't be affected > I don't see a good reason for this not to be allowed. > >>> =C2=A0 #55211 =C2=A0ArrayObject::getArrayObject () should skip proteced= or >>> private properties https://bugs.php.net/bug.php?id=3D55211 > > Looks good. > >> >> =C2=A0 #55128 SplFixedArray::fromArray() does not use extended class > > This doesn't look like a good idea. The constructor is not called (and in > general can't be, since we can't know how the subclass constructor looks > like), so the new object can be in an illegal state. > After much thought, I think there maybe no reason for fixedarray extended class to define it's own constructor, since we provide fixedarrary::__construct and fromArray already, and extended class should only get an instance through calling them. so I think we can make fixedarray::__construct final to make this feature w= orks. > -- > Gustavo Lopes > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > thanks --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/