|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-04 15:05 UTC] georg@php.net
[2005-02-04 16:05 UTC] georg@php.net
[2005-02-05 07:33 UTC] georg@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 02:00:01 2025 UTC |
Description: ------------ the tables contain two fields, each with 10000 rows where the names are just 10-digit numbers when I use the mysqli_stmt_bind_param, I get the 'memory could not be "read"' error, when not used I get no error Reproduce code: --------------- <?php $db = new mysqli("localhost","root","","test"); $tables = array('t_0','t_1','t_2','t_3','t_5','t_all'); foreach($tables AS $table){ $stmt[$table] = $db->stmt_init(); $stmt[$table]->prepare("SELECT id, name FROM " . $table . " WHERE name = ?"); $stmt[$table]->bind_param('i',$name); } for($i = 0;$i < 10;$i++){ $name = ""; for($j = 0;$j < 10;$j++){ $name .= rand(0,9); } foreach($tables AS $table){ $stmt[$table]->execute(); } } $db->close(); ?> Actual result: -------------- 'The instruction "0x00df82df" referenced memory at "0x0000000064". The memory could not be "read".'