ID:               37680
 Updated by:       [EMAIL PROTECTED]
 Reported By:      gnanavelan dot muthukrishnan at kumaran dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Sybase-ct (ctlib) related
 Operating System: Linux
 PHP Version:      5.1.4
 New Comment:

if you use sybase_connect() does the code work as expected?


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to