From: Antony Dovgal Date: Wed, 5 Jul 2006 13:31:17 +0000 (+0000) Subject: add test for bug #38003 X-Git-Tag: php-5.2.0RC1~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d90263437c0e6b10faa9b23c616afa0f68cd2178;p=php add test for bug #38003 --- 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