Hi, From the NEWS file : + . Fixed bug #55475 (is_a() triggers autoloader, new optional 3rd argument to + is_a and is_subclass_of). (alan_k) The 3rd argument is add to let user choose autoload or not, but not a string or not. so maybe we can make it more clear.
-- reeze 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 发送 在 2012年3月31日星期六,下午3:58,reeze 写道: > 在 2012年3月31日星期六,下午3:31,Stas Malyshev 写道: > > 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=61526 > > > 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=true|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? > > > > > > > > https://bugs.php.net/bug.php?id=61507 > > > This is worse than isset($str[0][0]) issue. > > > > Non-string offsets do not work in strings, because they don't make sense > > in strings. > > -- > > Stanislav Malyshev, Software Architect > > SugarCRM: http://www.sugarcrm.com/ > > (408)454-6900 ext. 227 > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php >