|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2008-01-07 15:02 UTC] iliaa@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 11:00:01 2025 UTC | 
Description: ------------ The mysql_field_name API should return FALSE on errror, that is what the docs state, but the impl returns NULL. Here is what the current code returns: mysql_field_name($res): Warning: Wrong parameter count for mysql_field_name() in C:\caucho_dev\trunk\qa\php\f.qa on line 11 NULL Reproduce code: --------------- <php out='stdout'> <?php mysql_connect("localhost", "", ""); mysql_query("USE test"); $res = mysql_query("SELECT * FROM test WHERE id = 1"); echo 'mysql_field_name($res): '; var_dump(mysql_field_name($res)); ?> </php> Expected result: ---------------- Should return FALSE.