php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57276 Integer parameter to database procedures
Submitted: 2006-10-04 05:17 UTC Modified: 2017-10-24 08:42 UTC
From: h dot pool at nibble dot nl Assigned:
Status: Suspended Package: ingres (PECL)
PHP Version: 5.1.2 OS: Fedora Core II
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: h dot pool at nibble dot nl
New email:
PHP Version: OS:

 

 [2006-10-04 05:17 UTC] h dot pool at nibble dot nl
Description:
------------
O.S.: Fedora Core II
Ingres: Ingres 2006 Linux Version II 9.0.4 (int.lnx/104)NPTL login
PHP: 5.1.2
Pecl: Ingres Extension Version 	1.2.1

Configure Command 	 './configure' '--prefix=/usr/local/php-5.1.2' '--enable-track-vars' '--with-png-dir' '--with-java=/usr/local/j2sdk1.4.2_05' '--with-freetype-dir' '--with-jpeg-dir' '--with-gd' '--with-zlib-dir' '--with-apxs=/usr/local/apache_1.3.34/bin/apxs' '--with-openssl=/usr/local/ssl' '--enable-soap' '--with-ingres=/opt/Ingres/IngresII/ingres'

Passing of integer parameters to database procedures fails.
Passing of character parameters to database procedures succeed.

Reproduce code:
---------------
The examples and output:
http://www.nibble.nl/bug_examples.zip

Expected result:
----------------
The passing of integer parameters to database procedures is not correct.
I can only pass characters parameters to database procedures.

When I pass characters to the database procedures, it gives the expected value.

The workaround:
I have to pass all parameters as characters and cast them to their original format in the database procedure.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-30 10:46 UTC] tyrael@php.net
-Assigned To: grantc@php.net +Assigned To: grantc
 [2017-10-24 07:04 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: grantc +Assigned To:
 [2017-10-24 08:42 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 08:42 UTC] kalle@php.net
The ingres package has not had any activity for 4 years, so its safe to say that its no longer in active development, if activity picks backup then the maintainer can re-open this report
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC