php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #28356 reading my.cnf
Submitted: 2004-05-11 04:37 UTC Modified: 2016-11-23 13:37 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: takeshi at softagency dot co dot jp Assigned: cmb (profile)
Status: Closed Package: MySQL related
PHP Version: * OS: *
Private report: No CVE-ID: None
 [2004-05-11 04:37 UTC] takeshi at softagency dot co dot jp
Description:
------------
please add
mysql_options(&mysql->conn, MYSQL_READ_DEFAULT_GROUP, "php");
before mysql_real_connect()
This read /etc/my.cnf [php] group.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-11 08:39 UTC] derick@php.net
feature request, assigning to georg.
 [2006-05-18 23:30 UTC] nene_cz at yahoo dot co dot uk
Hi, is there any progress in this feature request in php 4.x ?
 [2007-06-19 13:00 UTC] foo at bar dot com
in particular, this breaks charset settings, which default to latin1 in lack of my.cnf.
 [2007-10-12 15:08 UTC] pahan at hubbitus dot spb dot su
>in particular, this breaks charset settings, which default to latin1 in lack of my.cnf.
No, No, No! You may specify more than one default [client] group, to be able set to your taste settings of charsets and other settings.
 [2010-12-20 14:00 UTC] jani@php.net
-Package: Feature/Change Request +Package: MySQL related -Operating System: all +Operating System: * -PHP Version: 4.3.6 +PHP Version: *
 [2016-11-23 13:37 UTC] cmb@php.net
-Status: Assigned +Status: Closed -Assigned To: georg +Assigned To: cmb
 [2016-11-23 13:37 UTC] cmb@php.net
The MySSQL extension (ext/mysql) has been deprecated as of PHP
5.5.0 and removed as of PHP 7.0.0, so we won't implement any
feature requests anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC