From:             gnanavelan dot muthukrishnan at kumaran dot com
Operating system: Linux
PHP version:      5.1.4
PHP Bug Type:     Sybase-ct (ctlib) related
Bug description:  PHP 4.3.11 to PHP 5.1.4

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 bug report at http://bugs.php.net/?id=37680&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37680&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37680&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37680&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37680&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37680&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37680&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37680&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37680&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37680&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37680&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37680&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37680&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37680&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37680&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37680&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37680&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37680&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37680&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37680&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37680&r=mysqlcfg

Reply via email to