ID: 37680 Updated by: [EMAIL PROTECTED] Reported By: gnanavelan dot muthukrishnan at kumaran dot com -Status: Open +Status: Bogus Bug Type: Sybase-ct (ctlib) related Operating System: Linux PHP Version: 5.1.4 New Comment:
Yes, ext/mssql and ext/sybase are different extensions. For some weird reason ext/sybase contains mssql_* aliases, but not when ext/mssql enabled. See bug #32531 for details. Previous Comments: ------------------------------------------------------------------------ [2006-06-06 07:39:01] gnanavelan dot muthukrishnan at kumaran dot com Yes for sybase_query(), if i use sybase_pconnect it works fine. Simlarly for mssql_query(), if the i use mssql_pconnect, it works fine. ------------------------------------------------------------------------ [2006-06-05 15:50:14] [EMAIL PROTECTED] if you use sybase_connect() does the code work as expected? ------------------------------------------------------------------------ [2006-06-02 14:52:12] gnanavelan dot muthukrishnan at kumaran dot com Description: ------------ We are migrating from php 4.3.11 to php 5.1.4. The connection has established using mssql_pconnect(). But sybase_query() using that link id is not working in php 5.1.4 whereas it works in php 4.3.11. Same way the link id returned by sybase_pconnect() does not work for mssql_query(). but this works in php 4.3.11. Below source code used the link id of mssql_pconnect() Reproduce code: --------------- $sSQL = "SELECT * FROM DISTRIBUTOR where distributor_number = ".$_REQUEST['dist_id']; echo "<br> ssql " .$sSQL; echo "<br> Link id " .$Link_ID; $rc = sybase_query($sSQL , $Link_ID); echo "<br> rc ".$rc; Expected result: ---------------- ssql SELECT * FROM DISTRIBUTOR where distributor_number = 1 Link id Resource id #6 rc Resource id #10 Actual result: -------------- ssql SELECT * FROM DISTRIBUTOR where distributor_number = 1 Link id Resource id #6 rc ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37680&edit=1
