[PHP] instanceof ...

2005-08-23 Thread Jochem Maas
as of 5.1.1 instanceof will no longer call __autoload() (which maybe implemented as a handler/function chain by then?) Thank God/Angeline Jolie/My Cat/Other. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] instanceof / __CLASS__ question

2004-08-31 Thread Jason Barnett
It's only a minor nuisance, but in order to use __CLASS__ with instanceof I have to assign __CLASS__ to a variable first. Should I bother submitting a bug report for this? Or am I perhaps missing something... class Test { function checkObj2() { //workaround $class = __CLASS__;

Re: [PHP] instanceof on class (not objects) php 5

2003-07-07 Thread Greg Beaver
Hi, I can't instantiate the class, as there is no way to guarantee that the constructor doesn't require arguments, and I don't want to halt program execution if it doesn't implement tester Greg Marek Kilimajer wrote: Maybe if (new MyClass instanceof_equiv tester) { ... } ?> -- PHP

Re: [PHP] instanceof on class (not objects) php 5

2003-07-07 Thread Marek Kilimajer
Maybe if (new MyClass instanceof_equiv tester) { ... } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] instanceof on class (not objects) php 5

2003-07-05 Thread Greg Beaver
Hi, Is it possible to determine whether a class implements an interface without instantiating an object of that class? class MyClass implements tester { function doesStuff(){} } $var = 'MyClass'; if ($var instanceof_equiv tester) { ... } ?> I really need this kind of capability to dete