diff options
Diffstat (limited to 'Zend/tests/instanceof.phpt')
-rw-r--r-- | Zend/tests/instanceof.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/instanceof.phpt b/Zend/tests/instanceof.phpt new file mode 100644 index 0000000..8bcbede --- /dev/null +++ b/Zend/tests/instanceof.phpt @@ -0,0 +1,18 @@ +--TEST-- +instanceof shouldn't call __autoload +--FILE-- +<?php +function __autoload($name) { + echo("AUTOLOAD '$name'\n"); + eval("class $name {}"); +} + +class A { +} +$a = new A; +var_dump($a instanceof B); +var_dump($a instanceof A); +?> +--EXPECT-- +bool(false) +bool(true) |