#35473 [NEW]: $ sign in the MS SQL 2000 database name

From: Date: Tue, 29 Nov 2005 11:54:03 +0000
Subject: #35473 [NEW]: $ sign in the MS SQL 2000 database name
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89384@lists.php.net to get a copy of this message
From: parthk at bsil dot com Operating system: Windows 2000 PHP version: 4.4.2RC1 PHP Bug Type: *Database Functions Bug description: $ sign in the MS SQL 2000 database name Description: ------------ Hi, I am trying to coonect to MS SQL 2000 from PHP. The connection is all the times but when i give a database name with $ sign in it then it fails. Can you let me know if we have way out from this Thanks Parth Reproduce code: --------------- $myServer = "localhost"; $myUser = "sa"; $myPass = ""; $myDB = "DE$CIP"; $s = @mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); $d = @mssql_select_db([DE$CIP], $s) or die("Couldn't open database $myDB"); Expected result: ---------------- Get connected to the database Actual result: -------------- Notice: Undefined variable: CIP in D:\inetpub\livesite\DE_2\catalog\sql.php on line 6 Couldn't open database DE -- Edit bug report at http://bugs.php.net/?id=35473&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35473&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35473&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35473&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35473&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35473&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35473&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35473&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35473&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35473&r=support Expected behavior: http://bugs.php.net/fix.php?id=35473&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35473&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35473&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35473&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35473&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35473&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35473&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35473&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35473&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35473&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35473&r=mysqlcfg

« previous php.bugs (#89384) next »