Edit report at http://bugs.php.net/bug.php?id=53679&edit=1
ID: 53679 Updated by: cataphr...@php.net Reported by: mail at andreas-rex dot de Summary: Array are reference by copying to another array, after bind_param() -Status: Open +Status: Bogus Type: Bug Package: MySQLi related PHP Version: 5.2.17 Block user comment: N Private report: N New Comment: This is not a bug, it's a consequence of how references and arrays work in PHP (perhaps, more appropriately, this is a bug, but a it's a design shortcoming that can't be fixed any time soon). Take a look at http://www.php.net/manual/en/language.references.whatdo.php Previous Comments: ------------------------------------------------------------------------ [2011-01-06 22:21:00] mail at andreas-rex dot de Description: ------------ When an array was in a parameter list from bind_param() you can't copy it to another array, it's always a reference. But when you copy a single field from this array to a variable it's not a refence to the array. Test script: --------------- http://www.madking.de/bind_param_and_array.txt Expected result: ---------------- Some Examples, which show what I mean. It's bit hard to understand. It's NOT the reference to bind_param(). It's that an array gives only his reference when copied to another array. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53679&edit=1