ID: 23325
Comment by: donnyk at gmail 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:
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).
Previous Comments:
------------------------------------------------------------------------
[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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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
------------------------------------------------------------------------
[2003-04-28 07:29:08] fritz at lateral dot net
Try creating a database called php-bugs-list and one
called php_bugs_list.
mssql_connect('localhost','username','pwd') or die
'mssql_connect error';
mssql_select_db('php-bugs-list') or die
'mssql_select_db error';
mssql_connect('localhost','username','pwd') or die
'mssql_connect error';
mssql_select_db('php_bugs_list') or die
'mssql_select_db error';
I am not 'demanding' a fix - I have learnt that I will
avoid errors by having no dashes in the database name.
My problem is solved.
I tried to share this with other php users, If you want
to use this information to improve php you are welcome
to it - but please don't waste my time by being anal
about how the bug is reported.
And that's the end of it, AFAIAC.
------------------------------------------------------------------------
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