Bug #52617 [NEW]: call_user_func_array don't properly get parameters to a method

From: Date: Mon, 16 Aug 2010 09:24:18 +0000
Subject: Bug #52617 [NEW]: call_user_func_array don't properly get parameters to a method
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153471@lists.php.net to get a copy of this message
From: Operating system: Ubuntu Server 10.04 32 bit PHP version: 5.3.3 Package: Unknown/Other Function Bug Type: Bug Bug description:call_user_func_array don't properly get parameters to a method Description: ------------ The PHP version is 5.3.2 and not 5.3.3, but 5.3.2 is not present in the combo. When i try do execute a script that with PHP 5.2.9 on a Windows pc works in a Ubuntu server 10.04 with PHP 5.3.2 don't work. It appears that the second part of the function, the part relative to the parameters, don't get the parameters to the method of the first part. Test script: --------------- $db_user="root"; $db_password="password"; $db_host="localhost"; $mysqli = new mysqli($db_host, $db_user, $db_password, "database"); $query = "select id from table where name like ?"; $types="s"; $values[]="a%"; $stmt = $mysqli->prepare($query); call_user_func_array(array($stmt, "bind_param"), array_merge(array($types),$values)); $stmt->execute(); $stmt->bind_result($id); while($stmt->fetch()){ echo($id."<br />"); } $mysqli->close(); Expected result: ---------------- A list of ids. Actual result: -------------- Nothing and the excution don't give any errors -- Edit bug report at http://bugs.php.net/bug.php?id=52617&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52617&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52617&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52617&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52617&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52617&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52617&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52617&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52617&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52617&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52617&r=support Expected behavior: http://bugs.php.net/fix.php?id=52617&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52617&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52617&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52617&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52617&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52617&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52617&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52617&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52617&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52617&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52617&r=mysqlcfg

« previous php.bugs (#153471) next »