#51163 [Com]: fetch_field variants manual is wrong - they dont provide default value def

From: Date: Sat, 27 Feb 2010 23:29:40 +0000
Subject: #51163 [Com]: fetch_field variants manual is wrong - they dont provide default value def
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3993@lists.php.net to get a copy of this message
ID: 51163 Comment by: niel dot archer at blueyonder dot co dot uk Reported By: berniev at bje dot com dot au Status: Open Bug Type: Documentation problem Operating System: ubuntu 9 PHP Version: 5.3.1 New Comment: This appears to be a bug, not a documentation problem. I just tried this on PHP 5.3 using the MySQLi extension. $finfo = $result->fetch_field(); echo $finfo->def; Prints an empty string, it does not produce an error for an invalid property. Previous Comments: ------------------------------------------------------------------------ [2010-02-27 04:55:19] berniev at bje dot com dot au Description: ------------ The manuals for PHP all show mysql_fetch_field (s) (and mysqli) provide the table default value, WHICH THEY DO NOT! The manuals appear to be blatantly wrong. Interestingly the examples conveniently leave out def values. This may also apply to autoinc and primary key flags? The only reference to this I could find anywhere is a note from shoresofnowhere at gmail dot com 26-Aug-2009 10:50 after hours of searching. Please Please update the manuals!! (or fix php !) Reproduce code: --------------- --- From manual page: http://www.php.net/mysqli-result.fetch-field-direct --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=51163&edit=1

« previous php.doc.bugs (#3993) next »