diff options
author | Andrey Hristov <andrey@php.net> | 2008-02-04 17:33:46 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-02-04 17:33:46 +0000 |
commit | 2d5e8a1e558794e68c23216a41bf2396513ce77b (patch) | |
tree | 2a9e03bd8f0ec7708cabe599272d1dd67d118557 /ext/mysqli | |
parent | a547c556b64ea83456d826ed5290261e4641ccae (diff) | |
download | php-git-2d5e8a1e558794e68c23216a41bf2396513ce77b.tar.gz |
Fix a leak, memory warning and failing test case.
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/tests/bug35759.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mysqli/tests/bug35759.phpt b/ext/mysqli/tests/bug35759.phpt index b80ef1580d..ca8622d3a8 100644 --- a/ext/mysqli/tests/bug35759.phpt +++ b/ext/mysqli/tests/bug35759.phpt @@ -32,7 +32,9 @@ EOSQL; $stmt = $mysql->prepare("SELECT * FROM blobby"); $stmt->execute(); $stmt->store_result(); - $params= array_pad(array(), $col_num, ""); + for ($i = 0; $i < $col_num; $i++) { + $params[] = &$col_num; + } call_user_func_array(array($stmt, "bind_result"), $params); $stmt->fetch(); |