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
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__;
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
Maybe
if (new MyClass instanceof_equiv tester) {
...
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
5 matches
Mail list logo