php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58574 Problem with ingres_execute() function
Submitted: 2009-03-04 02:28 UTC Modified: 2009-05-21 04:00 UTC
From: sivakumara at prodigygroupindia dot com Assigned: grantc@php.net (profile)
Status: Closed Package: ingres (PECL)
PHP Version: 5.2.5 OS: WindowsXP, Linux SLES10
Private report: No CVE-ID: None
 [2009-03-04 02:28 UTC] sivakumara at prodigygroupindia dot com
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




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-21 04:00 UTC] grant dot croker at ingres dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC