php.net |  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
Votes:1
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: clark dot ryan at gmail dot com
New email:
PHP Version: OS:

 

 [2008-03-17 20:26 UTC] clark dot ryan at gmail dot com
Description:
------------
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>';
print_r($row);
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
)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-25 11:04 UTC] felipe@php.net
It's returning a empty string, and this ever will occur with the actual code.
 [2008-07-21 12:08 UTC] pajoye@php.net
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;

extension=php_sybase_ct.dll

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

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [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: Thu Apr 25 20:01:45 2024 UTC