Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33814 invoked from network); 31 Mar 2012 07:59:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2012 07:59:00 -0000 Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; 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:44567] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/01-28591-449B67F4 for ; Sat, 31 Mar 2012 02:59:00 -0500 Received: by iaeh11 with SMTP id h11so2240750iae.29 for ; Sat, 31 Mar 2012 00:58:58 -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=5oxEDlKfY8dG9V+w+2J8a2QpSc82X0X8464CM1Ian8o=; b=FELN+DsDlcXPbho40sekp8EpGzKRNO7oM+Vol4wZAJB1p++JC4atNfGNQSwnZ4AE4u YVRgrkgDQ4KVKp25luYLkz3CGfz9V5Zq7vX/eJHAQAMw78fmPi4nnewZIqgb1Ef6outM 18kPp/4Y0Dyy9N4sku8+Rion+rHogEIwI8LKjsREwOKoUdoXq5aei8D2GiHuNdXNpGoh ayu+OMIDL+mGuH05XCdw281rNF3slzzadImViWep0imDsN/gKZCcl//1RX9UN9L90mFd Gz2fQcwP/URGVwdKpPyg6SYoOXOqXeAV5iu87p6NJxM2bCdvzyjADcEHDQv0TsuVS/j4 c2hA== Received: by 10.42.150.131 with SMTP id a3mr695742icw.6.1333180738065; Sat, 31 Mar 2012 00:58:58 -0700 (PDT) Received: from MacBookPro.local ([61.135.169.76]) by mx.google.com with ESMTPS id wp4sm3489374igc.3.2012.03.31.00.58.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Mar 2012 00:58:57 -0700 (PDT) Date: Sat, 31 Mar 2012 15:58:44 +0800 To: Stas Malyshev Cc: Yasuo Ohgaki , "=?utf-8?Q?internals=40lists.php.net?=" Message-ID: <9A01D818C0E0429A91913327DBF4EE2C@gmail.com> In-Reply-To: <4F76B2E5.3010609@sugarcrm.com> References: <4F76B2E5.3010609@sugarcrm.com> X-Mailer: sparrow 1.3.2 (build 814.60) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4f76b934_74de0ee3_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) --4f76b934_74de0ee3_ef43 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =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 string,= > and if it is, it will be passed to autoloader to find the class. See bu= g > =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 try = autoloadding. if string will not be a String Class in 5.* I think it's ok to do like th= is. eg: callable and many mixed paramter. 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 sens= e > 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 --4f76b934_74de0ee3_ef43--