mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
And deprecate the MYSQLI_STORE_RESULT_COPY_DATA constant. RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_the_second_parameter_to_mysqli_store_result
33 lines
638 B
PHP
33 lines
638 B
PHP
--TEST--
|
|
Bug #77597: mysqli_fetch_field hangs scripts
|
|
--EXTENSIONS--
|
|
mysqli
|
|
--SKIPIF--
|
|
<?php
|
|
require_once 'skipifconnectfailure.inc';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once 'connect.inc';
|
|
$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
|
|
|
|
$mysqli->query('DROP TABLE IF EXISTS test');
|
|
$mysqli->query('CREATE TABLE test (b int)');
|
|
$mysqli->query('INSERT INTO test VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9)');
|
|
|
|
$mysqli->real_query("SELECT * FROM test");
|
|
|
|
$result = $mysqli->store_result();
|
|
|
|
$field = $result->fetch_field();
|
|
var_dump($field->name);
|
|
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
require_once 'clean_table.inc';
|
|
?>
|
|
--EXPECT--
|
|
string(1) "b"
|