📄 bug38003.phpt
字号:
--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--<?phpclass 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -