summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/bug38003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/bug38003.phpt')
-rw-r--r--ext/mysqli/tests/bug38003.phpt20
1 files changed, 0 insertions, 20 deletions
diff --git a/ext/mysqli/tests/bug38003.phpt b/ext/mysqli/tests/bug38003.phpt
deleted file mode 100644
index af71f85f2c..0000000000
--- a/ext/mysqli/tests/bug38003.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #38003 (in classes inherited from MySQLi it's possible to call private constructors from invalid context)
---SKIPIF--
-<?php if (!extension_loaded("mysqli")) print "skip"; ?>
---FILE--
-<?php
-
-class DB extends mysqli {
-
- private function __construct($hostname, $username, $password, $database) {
- var_dump("DB::__construct() called");
- }
-}
-
-$DB = new DB();
-
-echo "Done\n";
-?>
---EXPECTF--
-Fatal error: Call to private DB::__construct() from invalid context in %s on line %d