|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-07-10 06:31 UTC] john dot enevoldson at pulsen dot se
Description:
------------
We are seeing column names returned but no associated data when issuing selects against a db2 data source using pdo:odbc (bulit with the ibm-db2 option). DB2 trace shows that data is being returned to the application correctly but the application does not seem to pick it up.
Reproduce code:
---------------
$dbh = new PDO('odbc:zdb2lt01' , 'db2tst01', 'adg680');
foreach ($dbh->query('SELECT * from PXX.XPRMFOK') as $row) {
print_r($row);
}
Expected result:
----------------
A array for each row in the table showing column name and associated data.
Actual result:
--------------
A array for each row in the table showing column name but associated data is empty.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
Hi, backtrace genereated for the segmentation fault using the 5.2 cvs: (gdb) bt #0 _zval_ptr_dtor (zval_ptr=0x3ffffffc280) at /home/tje/php/php5.2-200607100830/Zend/zend_execute_API.c:393 #1 0x000000008021a356 in zend_do_fcall_common_helper_SPEC (execute_data=0x3ffffffc750) at zend_execute.h:148 #2 0x000000008021a7e6 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=<value optimized out>) at zend_vm_execute.h:322 #3 0x000000008027e936 in execute (op_array=0x805139e8) at zend_vm_execute.h:92 #4 0x00000000801f5514 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/tje/php/php5.2-200607100830/Zend/zend.c:1110 #5 0x00000000801b1f18 in php_execute_script (primary_file=0x3ffffffece8) at /home/tje/php/php5.2-200607100830/main/main.c:1748 #6 0x0000000080280140 in main (argc=2, argv=0x3fffffff388) at /home/tje/php/php5.2-200607100830/sapi/cli/php_cli.c:1097 (gdb) Best regards, John.missed this bit : (gdb) frame 3 #3 0x000000008027e936 in execute (op_array=0x805139e8) at zend_vm_execute.h:92 92 if (EX(opline)->handler(&execute_data TSRMLS_CC) > 0) { /John