Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Kalle Sommer Nielsen
Hi 2011/8/22 Mads Lie Jensen m...@gartneriet.dk: Hi. After upgrading to php 5.3.7, whenever I use is_a($object, 'ClassName'); the autoloader of classes is now called. This did not happen in earlier versions of php 5.3 that I used before. But I cannot find any  mention of it anywhere, no

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Mads Lie Jensen
On Mon, 22 Aug 2011 08:10:28 +0200, ka...@php.net (Kalle Sommer Nielsen) wrote: After upgrading to php 5.3.7, whenever I use is_a($object, 'ClassName'); the autoloader of classes is now called. This did not happen in earlier versions of php 5.3 that I used before. But I cannot find any  

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Hannes Magnusson
On Mon, Aug 22, 2011 at 08:22, Mads Lie Jensen m...@gartneriet.dk wrote: On Mon, 22 Aug 2011 08:10:28 +0200, ka...@php.net (Kalle Sommer Nielsen) wrote: After upgrading to php 5.3.7, whenever I use is_a($object, 'ClassName'); the autoloader of classes is now called. This did not happen in

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Mads Lie Jensen
On Mon, 22 Aug 2011 10:00:11 +0200, hannes.magnus...@gmail.com (Hannes Magnusson) wrote: I can reproduce that in 5.3-svn and 5.4-svn. Please file a bug report for it, this should probably be fixed in 5.3.8 too. Done: Bug #55475 is_a() triggers autoloader -- Mads Lie Jensen -

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Etienne Kneuss
Hi, On Mon, Aug 22, 2011 at 08:22, Mads Lie Jensen m...@gartneriet.dk wrote: On Mon, 22 Aug 2011 08:10:28 +0200, ka...@php.net (Kalle Sommer Nielsen) wrote: After upgrading to php 5.3.7, whenever I use is_a($object, 'ClassName'); the autoloader of classes is now called. This did not happen

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Kalle Sommer Nielsen
2011/8/22 Mads Lie Jensen m...@gartneriet.dk: On Mon, 22 Aug 2011 10:00:11 +0200, hannes.magnus...@gmail.com (Hannes Magnusson) wrote: I can reproduce that in 5.3-svn and 5.4-svn. Please file a bug report for it, this should probably be fixed in 5.3.8 too. Done: Bug #55475      is_a()

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Ilia Alshanetsky
The fix looks good, Dmitry can you please review it, if it is good let's get it into 5.3.8 On Mon, Aug 22, 2011 at 6:33 AM, Kalle Sommer Nielsen ka...@php.net wrote: 2011/8/22 Mads Lie Jensen m...@gartneriet.dk: On Mon, 22 Aug 2011 10:00:11 +0200, hannes.magnus...@gmail.com (Hannes Magnusson)

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Etienne Kneuss
The actual question is whether the fix makes sense or not in the first place. Please debate in the bug report directly to avoid a schizophrenic discussion. Best, On Mon, Aug 22, 2011 at 15:12, Ilia Alshanetsky i...@prohost.org wrote: The fix looks good, Dmitry can you please review it, if it

Re: [PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-22 Thread Stas Malyshev
Hi! On 8/21/11 11:22 PM, Mads Lie Jensen wrote: Ah, I now see that it only happens when trying to check something which is not actually an object: ?php function __autoload($class) { echo Would load: . $class . PHP_EOL; } $var = test; var_dump(is_a($var, 'B')); $obj = new Stdclass;

[PHP-DEV] is_a() triggers __autoload() in 5.3.7

2011-08-21 Thread Mads Lie Jensen
Hi. After upgrading to php 5.3.7, whenever I use is_a($object, 'ClassName'); the autoloader of classes is now called. This did not happen in earlier versions of php 5.3 that I used before. But I cannot find any mention of it anywhere, no open bugs for it, and nothing in the changelogs. Is it a