Copying an array may not lead to pointer reset (bug #45369)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268347 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2008-11-05 10:53:52 +00:00
parent dd28d33349
commit 3ef6a74874

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<sect1 xml:id="language.types.array">
<title>Arrays</title>
@ -840,9 +840,7 @@ $juices["apple"]["green"] = "good";
</example>
<para>
<type>Array</type> assignment always involves value copying. It also means
that the internal <type>array</type> pointer used by
<function>current</function> and similar functions is reset. Use the
<type>Array</type> assignment always involves value copying. Use the
<link linkend="language.operators">reference operator</link> to copy an
<type>array</type> by reference.
</para>