diff --git a/ext/mysqli/tests/bug38003.phpt b/ext/mysqli/tests/bug38003.phpt new file mode 100644 index 00000000000..af71f85f2c2 --- /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