From d90263437c0e6b10faa9b23c616afa0f68cd2178 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 5 Jul 2006 13:31:17 +0000 Subject: [PATCH] add test for bug #38003 --- ext/mysqli/tests/bug38003.phpt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ext/mysqli/tests/bug38003.phpt diff --git a/ext/mysqli/tests/bug38003.phpt b/ext/mysqli/tests/bug38003.phpt new file mode 100644 index 0000000000..af71f85f2c --- /dev/null +++ b/ext/mysqli/tests/bug38003.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #38003 (in classes inherited from MySQLi it's possible to call private constructors from invalid context) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Fatal error: Call to private DB::__construct() from invalid context in %s on line %d -- 2.40.0