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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sat Dec 21 15:01:29 2024 UTC