Bug #53679 [NEW]: Array are reference by copying to another array, after bind_param()
| From: | mail at andreas-rex dot de | Date: | Thu, 06 Jan 2011 21:21:00 +0000 |
| Subject: | Bug #53679 [NEW]: Array are reference by copying to another array, after bind_param() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-157708@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.2.17
Package: MySQLi related
Bug Type: Bug
Bug description:Array are reference by copying to another array, after bind_param()
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 bug report at http://bugs.php.net/bug.php?id=53679&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53679&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53679&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53679&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53679&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53679&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53679&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53679&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53679&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53679&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53679&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53679&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53679&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53679&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53679&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53679&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53679&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53679&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53679&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53679&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53679&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53679&r=mysqlcfg