|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-21 04:00 UTC] grant dot croker at ingres dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 13:00:01 2025 UTC |
Description: ------------ I have executed the below code in WindowsXP and Linux SLES10 operating systems. I have used PHP 5.2.8 in windows and PHP 5.2.6 in Linux. I have used windows II 9.3.0 (int.w32/144) and Linux II 9.3.0 (int.lnx/143)NPTL builds for testing. when I tried in Windows, ingres_execute function was not executed, but the ingres_prepare() and ingres_cursor were successful. But in Linux, all the three functions ingres_prepare(), ingres_cursor() and ingres_execute() failed. Reproduce code: --------------- <?php $database='phpdb_unicode'; $user='testenv'; $password='ca-testenv'; $conn = ingres_pconnect($database,$user,$password); if($conn) { echo "connection established","\n"; $ingpre=ingres_prepare($conn,"select * from param_tests "); if($ingpre) { echo "cursor prepared","\n"; echo ingres_cursor($ingpre), "\n"; $exec=ingres_execute($ingpre); if(is_resource(ingres_execute($ingpre))) { echo "cursor execution is done"; } else { echo "cursor failed to execute"; } } else { echo "ingres_prepare() failed to create a cursor","\n";} } else { echo "connection failed";} ?> Expected result: ---------------- connection established cursor prepared php_968_1 cursor execution is done Actual result: -------------- Actual result in Windows: connection established cursor prepared php_968_1 cursor failed to execute Actual result in Linux: connection established ingres_prepare() failed to create a cursor