Bug #16897 Updated: PHP connecting with localhost.localdomain overiding every host in mysql_connect
| From: | jason at jasonnelms dot com | Date: | Sat, 04 May 2002 15:18:08 +0000 |
| Subject: | Bug #16897 Updated: PHP connecting with localhost.localdomain overiding every host in mysql_connect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6908@lists.php.net to get a copy of this message | ||
ID: 16897
Updated by: jason@jasonnelms.com
Reported By: gijs@spill.nl
Status: Closed
Bug Type: MySQL related
Operating System: Redhat 7.2
PHP Version: 4.2.0
New Comment:
I am new to linux and not sure how to do the whole rebuild thing
required here. Is there an ETA on 4.2.1's release?
Previous Comments:
------------------------------------------------------------------------
[2002-04-29 04:46:46] mfischer@php.net
This will be fixed in 4.2.1
In the meantime you can fix it for 4.2.0 by rebuilding the ./conifgure
script in php4/ with autoconf 2.13 (NOT 2.52) and run configure again.
------------------------------------------------------------------------
[2002-04-29 04:44:45] gijs@spill.nl
php 2.0 is of course PHP 4.2.0
------------------------------------------------------------------------
[2002-04-29 04:37:58] gijs@spill.nl
OS: Redhat 7.1 and 7.2
When using php 2.0 php is overiding vars.
When I do:
mysql_connect("localhost",user,pass);
PHP changes "localhost"(and all other input) in to
"localhost.localdomain".
This way nobody can connect to mysql(standard "localhost") or any other
remote mysql service.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16897&edit=1