#49086 [Com]: MySQLI Options page does not list defaults

From: Date: Wed, 29 Jul 2009 02:29:46 +0000
Subject: #49086 [Com]: MySQLI Options page does not list defaults
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2568@lists.php.net to get a copy of this message
ID: 49086 Comment by: niel dot archer at blueyonder dot co dot uk Reported By: jarrod dot makin at heartinternet dot co dot uk Status: Open Bug Type: Documentation problem PHP Version: Irrelevant New Comment: "Read options from named option file instead of my.cnf" is misleading. As far as I can tell, the extension does not load my.cnf (or my.ini on Windows) from any of the locations mentioned in the MySQL documentation. The options file is documented in the MySQL documentation http://dev.mysql.com/doc/refman/5.0/en/option-files.html The defaults appear to be: MYSQLI_OPT_LOCAL_INFILE false MYSQLI_READ_DEFAULT_FILE ''. MYSQLI_READ_DEFAULT_GROUP 'client'. Previous Comments: ------------------------------------------------------------------------ [2009-07-28 08:18:49] jarrod dot makin at heartinternet dot co dot uk Description: ------------ The MySQLI options manual page lists various parameters: MYSQLI_OPT_CONNECT_TIMEOUT connection timeout in seconds MYSQLI_OPT_LOCAL_INFILE enable/disable use of LOAD LOCAL INFILE but doesn't state what the defaults are if you don't explicitly set them. MYSQLI_READ_DEFAULT_FILE Read options from named option file instead of my.cnf "Read options from named option file instead of my.cnf" is misleading to me. Does this mean that MySQLI will automatically try to read in a file called my.cnf that's in the same directory as the php script? Are there any special parameters that can be placed in the my.cnf to be used with MySQLI? There are very few examples of this functionality being used. Reproduce code: --------------- --- From manual page: mysqli.options --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49086&edit=1

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