summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_021.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/errmsg_021.phpt')
-rw-r--r--Zend/tests/errmsg_021.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_021.phpt b/Zend/tests/errmsg_021.phpt
new file mode 100644
index 0000000..4e62f85
--- /dev/null
+++ b/Zend/tests/errmsg_021.phpt
@@ -0,0 +1,17 @@
+--TEST--
+errmsg: disabled class
+--INI--
+disable_classes=stdclass
+--FILE--
+<?php
+
+class test extends stdclass {
+}
+
+$t = new test;
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: test() has been disabled for security reasons in %s on line %d
+Done