php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16116 MYSQL_UNIX_ADDR
Submitted: 2002-03-16 16:43 UTC Modified: 2002-06-21 01:00 UTC
From: photon at comcast dot net Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 + 41 = ?
Subscribe to this entry?

 
 [2002-03-16 16:43 UTC] photon at comcast dot net
If you compile mysql with a specific .sock location, and then compile php with your local mysql libraries, php tries to redefine MYSQL_UNIX_ADDR.  The problem lies in php_config.h.

Basically,

#define MYSQL_UNIX_ADDR "/var/run/mysql/mysql.sock"

(that path probably isn't right, I already changed it on mine)

should be

#ifndef MYSQL_UNIX_ADDR
#define MYSQL_UNIX_ADDR "/var/run/mysql/mysql.sock"
#endif

But I don't know how to fix whatever needs to be fixed so that this php_config.h, which seems to be a generated file, is generated like that.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-01 15:52 UTC] sniper@php.net
IIRC, this was fixed in CVS a long time ago. Could you
please try the PHP 4.2.0RC1 from: http://www.php.net/~derick/ and if that doesn't work either,
test the latest CVS snapshot from http://snaps.php.net/

 [2002-04-01 15:52 UTC] sniper@php.net
reclassified
 [2002-06-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC