#47450 [NEW]: ODBC bug
| From: | stefan at konink dot de | Date: | Thu, 19 Feb 2009 15:35:33 +0000 |
| Subject: | #47450 [NEW]: ODBC bug | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-134003@lists.php.net to get a copy of this message | ||
From: stefan at konink dot de
Operating system: Linux
PHP version: 5.3.0beta1
PHP Bug Type: *Database Functions
Bug description: ODBC bug
Description:
------------
http://bugs.php.net/6275
Basically that bug still exists. What goes wrong is the following:
The ODBC specifications are very explicit about the ParameterType, if it
is not present aka 0, it will bug.
Reproduce code:
---------------
<?php
$a = 1;
$b = 2;
$c = 3;
$stmt = odbc_prepare($conn, 'CALL myproc(?,?,?)');
$success = odbc_execute($stmt, array($a, $b, $c));
?>
Expected result:
----------------
The expected is an integer/numeric assignment at binding.
Actual result:
--------------
0 is assigned, thus fails on any database that is explicit about this.
--
Edit bug report at http://bugs.php.net/?id=47450&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47450&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47450&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47450&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47450&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47450&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47450&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47450&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47450&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47450&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47450&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47450&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47450&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47450&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47450&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47450&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47450&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47450&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47450&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47450&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47450&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47450&r=mysqlcfg