Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59255 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36002 invoked from network); 31 Mar 2012 08:06:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2012 08:06:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:63104] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/61-28591-40BB67F4 for ; Sat, 31 Mar 2012 03:06:29 -0500 Received: by iaeh11 with SMTP id h11so2245801iae.29 for ; Sat, 31 Mar 2012 01:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=Ejk/rrv1d2SJDktPtD2tQP+RZkps93VYGUZzgSGxcLc=; b=ECkhGKzZwSDmwAL4LYkkmtdie1rFM8ulBJPGI/HveOamLEgPx3QatYnPiG5TVsyAvG u/xMqe8DXn7MAes2KBLD1HSXP+yOjkAtDC91Xd09i0ftFKXqUMhTnkpqSe/RwRNGWpyE qu2WdpARXTalgS0hiwnA+gLVb7j/WgjE/0eYfwBUglk35Uu7hklCED1WPbqY+xo8kpJF mnFgPkwBIIX6bjiFRbzHWt8znKo+DmewATo2mlwUeRvqIOQI3zRYaSwk2FG/Xo8AUH/J urlJlv5nIllZ8f/8luPLhNITGDb2nLm6zocAMseAEYUfZVUHWugVKauFW7oQmtKu/Qnl arXg== Received: by 10.50.46.194 with SMTP id x2mr782807igm.60.1333181185773; Sat, 31 Mar 2012 01:06:25 -0700 (PDT) Received: from MacBookPro.local ([61.135.169.76]) by mx.google.com with ESMTPS id df1sm3481777igb.12.2012.03.31.01.06.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Mar 2012 01:06:25 -0700 (PDT) Date: Sat, 31 Mar 2012 16:06:05 +0800 To: Stas Malyshev Cc: Yasuo Ohgaki , "=?utf-8?Q?internals=40lists.php.net?=" Message-ID: <454BD6A850934EBEAD45595C949F04E7@gmail.com> In-Reply-To: <9A01D818C0E0429A91913327DBF4EE2C@gmail.com> References: <4F76B2E5.3010609@sugarcrm.com> <9A01D818C0E0429A91913327DBF4EE2C@gmail.com> X-Mailer: sparrow 1.3.2 (build 814.60) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4f76baed_488ac1a_ef43" Subject: =?utf-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A_?=[PHP-DEV] Re: bugs needs fix before 5.4.1 From: reeze.xia@gmail.com (reeze) --4f76baed_488ac1a_ef43 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, =20 =46rom the NEWS file : + . =46ixed bug =2355475 (is=5Fa() triggers autoloader, new optional 3rd = argument to + is=5Fa and is=5Fsubclass=5Fof). (alan=5Fk) =20 The 3rd argument is add to let user choose autoload or not, but not a str= ing or not. so maybe we can make it more clear. -- =20 reeze =E5=B7=B2=E4=BD=BF=E7=94=A8 Sparrow (http://www.sparrowmailapp.com/=3Fsig= ) =E5=8F=91=E9=80=81 =E5=9C=A8 2012=E5=B9=B43=E6=9C=8831=E6=97=A5=E6=98=9F=E6=9C=9F=E5=85=AD=EF= =BC=8C=E4=B8=8B=E5=8D=883:58=EF=BC=8Creeze =E5=86=99=E9=81=93=EF=BC=9A > =E5=9C=A8 2012=E5=B9=B43=E6=9C=8831=E6=97=A5=E6=98=9F=E6=9C=9F=E5=85=AD= =EF=BC=8C=E4=B8=8B=E5=8D=883:31=EF=BC=8CStas Malyshev =E5=86=99=E9=81=93=EF= =BC=9A > > On 3/30/12 7:27 PM, Yasuo Ohgaki wrote: > > > Hi Stas, > > > =20 > > > Just =46YI. > > > =46ollowing bugs are needed to be fixed before 5.4.1, I think. > > > =20 > > > https://bugs.php.net/bug.php=3Fid=3D61526 > > > Which is right, doc or code=3F > > =20 > > Both. The parameter means that first argument (object) can be a strin= g, > > and if it is, it will be passed to autoloader to find the class. See = bug > > =2355475 for the discussion. > If is set to false does it means the first parameter can't be string=3F= > Can't we just make the last parameter to autoload=3Dtrue=7Cfalse. > if the first parameter is a string then try to find the class if not tr= y autoloadding. > =20 > if string will not be a String Class in 5.* I think it's ok to do like = this. eg: callable and many mixed paramter. > =20 > what do you think=3F =20 > > =20 > > > =20 > > > https://bugs.php.net/bug.php=3Fid=3D61507 > > > This is worse than isset(=24str=5B0=5D=5B0=5D) issue. > > =20 > > Non-string offsets do not work in strings, because they don't make se= nse > > in strings. > > -- =20 > > Stanislav Malyshev, Software Architect > > SugarCRM: http://www.sugarcrm.com/ > > (408)454-6900 ext. 227 > > =20 > > -- =20 > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > =20 --4f76baed_488ac1a_ef43--