|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-01 03:07 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 15:00:01 2025 UTC |
Description: ------------ The odbc_execute documentation says that... Elements of this array will be converted to strings by calling this function. However in what I encountered, more than the array is changed. Variables used to form the param array are changed as well. Reproduce code: --------------- <?php header("content-type: text/plain"); require_once(dirname(__FILE__)."/config.php"); // define connect params $odbc = odbc_connect(ODBC_DSN, Username, Password); $b = false; $b2 = $b; $params = array($b2); ?> Before odbc: <?php var_dump($b, $params); ?> <?php odbc_execute(odbc_prepare($odbc, "SELECT ?"), $params); ?> After odbc: <?php var_dump($b, $params); ?> Expected result: ---------------- Before odbc: bool(false) array(1) { [0]=> bool(false) } After odbc: bool(false) array(1) { [0]=> string(0) "" } Actual result: -------------- Before odbc: bool(false) array(1) { [0]=> bool(false) } After odbc: string(0) "" array(1) { [0]=> string(0) "" }