#37680 [Opn->Bgs]: PHP 4.3.11 to PHP 5.1.4
| From: | tony2001@php.net | Date: | Tue, 06 Jun 2006 07:56:42 +0000 |
| Subject: | #37680 [Opn->Bgs]: PHP 4.3.11 to PHP 5.1.4 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98074@lists.php.net to get a copy of this message | ||
ID: 37680
Updated by: tony2001@php.net
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] iliaa@php.net
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