php-src/ext/mysqli/tests/bug32490.phpt
Christoph M. Becker b15eff6386 Fix #32490: constructor of mysqli has wrong name
As of PHP 7 old style constructor names are deprecated, so we rename
mysqli::mysqli() to mysqli::__construct().
2015-09-01 21:44:16 +02:00

14 lines
294 B
PHP

--TEST--
Bug #32490 (constructor of mysqli has wrong name)
--SKIPIF--
<?php if (!extension_loaded("mysqli")) die("skip mysqli not available"); ?>
--FILE--
<?php
var_dump(method_exists("mysqli", "mysqli"));
var_dump(method_exists("mysqli", "__construct"));
?>
--EXPECT--
bool(false)
bool(true)