mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
b15eff6386
As of PHP 7 old style constructor names are deprecated, so we rename mysqli::mysqli() to mysqli::__construct().
14 lines
294 B
PHP
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)
|
|
|