[PHP-DEV] 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread reeze
在 2012年3月31日星期六,下午4:35,Stas Malyshev 写道: > Hi! > > > If is set to false does it means the first parameter can't be string? > > It can. But it won't be seen as a class name, but rather as a string, > that is not an object that is an instance of a subclass of anything, so > it will return false.

[PHP-DEV] Re: 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread Stas Malyshev
Hi! > If is set to false does it means the first parameter can't be string? It can. But it won't be seen as a class name, but rather as a string, that is not an object that is an instance of a subclass of anything, so it will return false. > Can't we just make the last parameter to autoload=true

[PHP-DEV] Re: 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread Yasuo Ohgaki
Hi, This is my suggestion for is_subclass_of() doc fix. I've already committed. If anyone want to improve, please do. https://gist.github.com/2260846 I would like to allow string class name always and only prevent autoloading, but I don't care much. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net

[PHP-DEV] Re: 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread Yasuo Ohgaki
2012/3/31 reeze : > 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

[PHP-DEV] Re: 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread Yasuo Ohgaki
2012/3/31 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

[PHP-DEV] 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread reeze
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:/

[PHP-DEV] 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread 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

[PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread Yasuo Ohgaki
Hi, Thanks for reply. >> 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. We should improve doc

[PHP-DEV] Re: bugs needs fix before 5.4.1

2012-03-31 Thread 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 b