Bug #16897: PHP connecting with localhost.localdomain overiding every host in mysql_connect

From: Date: Mon, 29 Apr 2002 08:37:58 +0000
Subject: Bug #16897: PHP connecting with localhost.localdomain overiding every host in mysql_connect
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6432@lists.php.net to get a copy of this message
From: gijs@spill.nl Operating system: Redhat 7.2 PHP version: 4.2.0 PHP Bug Type: MySQL related Bug description: PHP connecting with localhost.localdomain overiding every host in mysql_connect 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 bug report at http://bugs.php.net/?id=16897&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16897&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16897&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16897&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16897&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16897&r=support Expected behavior: http://bugs.php.net/fix.php?id=16897&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16897&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16897&r=submittedtwice

« previous php.bugs (#6432) next »