summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_041.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/errmsg_041.phpt')
-rw-r--r--Zend/tests/errmsg_041.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_041.phpt b/Zend/tests/errmsg_041.phpt
new file mode 100644
index 0000000..bfcafd2
--- /dev/null
+++ b/Zend/tests/errmsg_041.phpt
@@ -0,0 +1,11 @@
+--TEST--
+errmsg: instanceof expects an object instance, constant given
+--FILE--
+<?php
+
+var_dump("abc" instanceof stdclass);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Fatal error: instanceof expects an object instance, constant given in %s on line %d