Re: DB/mssql.php small glitch

From: Date: Mon, 16 Dec 2002 15:29:11 +0000
Subject: Re: DB/mssql.php small glitch
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11712@lists.php.net to get a copy of this message
Maybe if yould have a quick hack which checks for the PHP_OS or PEAR_OS and acts accordingly >>It´s stated everywhere in the PHP docs that when you´re on Linux, you >>can use the Sybase extension to have access to PHP´s mssql_* functions. >>What the manual doesn´t say is that not all of the mssql-functions are >>available this way - mssql_fetch_assoc() is one of them. Try to call >>it on Linux where PHP was compiled using --with-sybase. Result: "Call >>to undefined function". Maybe if yould have a quick hack which checks for the PHP_OS or PEAR_OS and acts accordingly >>So IF this change is really made, we´d better make sure that there´s a >>huge warning sign in the PEAR::DB manual, stating that you should use >>"sybase" in your DSN if you´re trying to connect to an MSSQL server >>from a Linux box. This might sound stuipid but is there a way to have db types aliases, for example say if running linux the mssql driver would acctually load and use the sybase driver. Ok maybe it is a stuipid thought but I thought to share it. >>I´ve had a lot of trouble the last few weeks trying to find out why >>the tableInfo() method wasn´t working on my Linux box, while it was >>working very well on Windows. I never found any clue in the docs, so I >>thought it must actually be my system that´s f...ed up. After a while, >>I found out that the functions that tableInfo() uses in DB´s MSSQL >>driver are only supported by the original MSSQL extension under Sorry to hear that maybe you should try metabase ... ... hehe just kiddin Yavor

« previous php.pear.dev (#11712) next »