|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44459 sybase_fetch_result not returning column_source
Submitted: 2008-03-17 20:26 UTC Modified: 2008-11-03 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: clark dot ryan at gmail dot com Assigned:
Status: No Feedback Package: Sybase-ct (ctlib) related
PHP Version: 5.2.5 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-03-17 20:26 UTC] clark dot ryan at gmail dot com
sybase_fetch_field is consistently returning me a NULL value for column_source.

Reproduce code:
$conn = @sybase_pconnect('server','user','pass');
$query = "SELECT * FROM Products WHERE productID = 1";
$rs = sybase_query($query);
$row = sybase_fetch_field($rs);

echo '<pre>';
echo '</pre>';

Expected result:
stdClass Object
    [name] => productID
    [max_length] => 11
    [column_source] => 'Products'
    [numeric] => 1
    [type] => int

Actual result:
stdClass Object
    [name] => productID
    [max_length] => 11
    [column_source] => 
    [numeric] => 1
    [type] => int


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-25 11:04 UTC]
It's returning a empty string, and this ever will occur with the actual code.
 [2008-07-21 12:08 UTC]
Can you try with sybase_ct, ext/sybase is dead now (5.3+) and only sybase_ct remains in php and is actively maintained.
 [2008-07-22 12:54 UTC] clark dot ryan at gmail dot com
As far as I know I am already using sybase_ct;


That is from my php.ini, un-commented.
 [2008-10-26 23:22 UTC]
Please try using this CVS snapshot:
For Windows:

 [2008-11-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 07:01:28 2024 UTC