1--TEST-- 2Bug #77597: mysqli_fetch_field hangs scripts 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8?> 9--FILE-- 10<?php 11 12require_once 'connect.inc'; 13$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 14 15$mysqli->query('DROP TABLE IF EXISTS test'); 16$mysqli->query('CREATE TABLE test (b int)'); 17$mysqli->query('INSERT INTO test VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9)'); 18 19$mysqli->real_query("SELECT * FROM test"); 20 21$result = $mysqli->store_result(); 22 23$field = $result->fetch_field(); 24var_dump($field->name); 25 26?> 27--CLEAN-- 28<?php 29require_once 'clean_table.inc'; 30?> 31--EXPECT-- 32string(1) "b" 33