#23325 [Com]: PHP can't connect if db name has dashes

From: Date: Fri, 16 Oct 2009 11:50:03 +0000
Subject: #23325 [Com]: PHP can't connect if db name has dashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143629@lists.php.net to get a copy of this message
ID: 23325 Comment by: yetihehe at yetihehe dot com Reported By: fritz at lateral dot net Status: No Feedback Bug Type: MSSQL related Operating System: Win 2000 PHP Version: 4.3.1 New Comment: Problem exists also when trying to use odbc+freetds with any method (odbc_connect, new PDO("odbc:...")) under linux, php 5.2.4. Connecting using external programs works. Previous Comments: ------------------------------------------------------------------------ [2008-06-03 21:21:57] donnyk at gmail dot com This bug still exists in 5.2.6, code to reproduce remains the same. mssql_select_db('mysilly-database'); will result in an error claiming that mysilly does not exist within sysdatabases (a mssql system table). ------------------------------------------------------------------------ [2007-11-30 17:40:53] byoung at bigbluehat dot com 2007 - PHP 5.2.3 still have this issue. Connection to MSSQL databases with dash continues to fail (using FreeTDS 0.63). Databases without dashes in the name connect without error. ------------------------------------------------------------------------ [2006-10-10 18:00:36] chris at sugarcrm dot com 2006 - PHP 4.4.2/4 and PHP 5.1.2/4 still have this issue. The same code use-case is valid: try to connect to a MSSql database with dashes in the name, and the connection will fail. ------------------------------------------------------------------------ [2003-05-09 07:35:01] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-04-30 06:13:24] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/23325 -- Edit this bug report at http://bugs.php.net/?id=23325&edit=1

« previous php.bugs (#143629) next »