|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-08-16 11:24 UTC] s dot cimini at email dot it
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 12:00:01 2025 UTC |
I cannot reproduce any problem using the follow sample code: var_dump(call_user_func_array(array(new simplexmlelement('<a><b/></a>'), 'xpath'), array('//a')));