Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59256 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37431 invoked from network); 31 Mar 2012 08:10:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2012 08:10:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:54496] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/B1-28591-8EBB67F4 for ; Sat, 31 Mar 2012 03:10:18 -0500 Received: by yenl5 with SMTP id l5so838705yen.29 for ; Sat, 31 Mar 2012 01:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=+4DEysC7bq3SDPdehXmx7tIfK3FIDwLCMHWMomdhFPs=; b=V/C2wWRTMwt/aVkXfmXf/zbJDh7y2b+ucq+52IVObelMWhyhSUlC1GZ2Adt4pIkBjq VlqshSAswJHAWIj05k0Nc0lLd4CpFJbAmoep+041JGrv3HEq+cvikgczn2dE+wB86qV/ StULNlWIvQCD+LSV6gfWdDjGsvVBMWM887GVgDP6yuHmSrEzSSL8+gtt+9Sr0TzzqRNW dqY07u0CzmEsEIVW9yYV2rmRrJpQn1aubmpZ2aZNnZK/89v188Z8wry624zkQ4I8D6wh W15KcpIGjh53GQ8gmEyyf3ZOcQNqsgUHvJhJ1qFv90LeJthXpW6q+pRZELgKbuHXbHTk mhQw== Received: by 10.236.154.233 with SMTP id h69mr998652yhk.86.1333181414132; Sat, 31 Mar 2012 01:10:14 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.146.86.14 with HTTP; Sat, 31 Mar 2012 01:09:34 -0700 (PDT) In-Reply-To: <9A01D818C0E0429A91913327DBF4EE2C@gmail.com> References: <4F76B2E5.3010609@sugarcrm.com> <9A01D818C0E0429A91913327DBF4EE2C@gmail.com> Date: Sat, 31 Mar 2012 17:09:34 +0900 X-Google-Sender-Auth: UTo700qnq0bJD4TAXlbaDxSB1Zk Message-ID: To: reeze Cc: Stas Malyshev , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: =?UTF-8?B?UmU6IOWbnuWkje+8miBbUEhQLURFVl0gUmU6IGJ1Z3MgbmVlZHMgZml4IGJlZm9yZSA1Lg==?= =?UTF-8?B?NC4x?= From: yohgaki@ohgaki.net (Yasuo Ohgaki) 2012/3/31 reeze : > =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, > > Just FYI. > Following bugs are needed to be fixed before 5.4.1, I think. > > https://bugs.php.net/bug.php?id=3D61526 > Which is right, doc or code? > > > 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 bug > #55475 for the discussion. > > If is set to false does it means the first parameter can't be string? > Can't we just make the last parameter to autoload=3Dtrue|false. > 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 > this. eg: callable and many mixed paramter. > > what do you think? You're right. I've read too many bug reports today and confused :) Therefore, 3rd parameter works for "Not allowing class name", but it cannot be used to restrict autoloading. Am I missing something? I'll read the report Stas mentioned from now. Regards, -- Yasuo Ohgaki