com php-langspec: Merge pull request #6: spec/php-spec-draft.md

From: Date: Thu, 31 Jul 2014 03:17:58 +0000
Subject: com php-langspec: Merge pull request #6: spec/php-spec-draft.md
Groups: php.standards 
Request: Send a blank email to standards-+get-178@lists.php.net to get a copy of this message
Commit: 476d277395dfafff8039d18661b8721171e05ce4 Author: Hannes Magnusson <bjori@mongodb.com> Wed, 30 Jul 2014 20:17:58 -0700 Parents: 5255634babaa11d1bcb37e605059378357f20bc6 ad8504a382d16199a0424a173d63ba23f5224644 Branches: master Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=476d277395dfafff8039d18661b8721171e05ce4 Log: Merge pull request #6 * pull-request/6: Replaced regular apostrophes by "typewriter apostrophes" Conflicts: spec/php-spec-draft.md Bugs: https://bugs.php.net/6 Changed paths: MM spec/php-spec-draft.md Diff: diff --cc spec/php-spec-draft.md index 276c7fe,33f05e4..250ab59 --- a/spec/php-spec-draft.md +++ b/spec/php-spec-draft.md @@@ -1130,21 -1130,21 +1130,21 @@@ the value assignment $b = $a                                                  [VStore Int 1]  [VStore Int 3] </pre> - The value assignment $b = $a made a copy of $a’s array. Note how - $b’s VSlot points to a different VStore than $a’s VSlot, and $b’s - VStore points to a different HStore than $a’s VStore. Each source array + The value assignment $b = $a made a copy of $a's array. Note how + $b's VSlot points to a different VStore than $a's VSlot, and $b's -VStore points to a different HStore than $b's VStore. Each source array ++VStore points to a different HStore than $a's VStore. Each source array element is copied using *member-copy assignment* =*, which is defined as follows: ``` $destination =* $source ``` - - If $source’s VStore has a refcount equal to 1, the Engine copies the + - If $source's VStore has a refcount equal to 1, the Engine copies the array element using value assignment (destination = $source). - - If $source’s VStore has a refcount that is greater than 1, the Engine + - If $source's VStore has a refcount that is greater than 1, the Engine uses an implementation-defined algorithm to decide whether to copy the element using value assignment ($destination = $source) or byRef - assignment ($destination = &$source). + assignment ($destination =& $source). Note the member-copy assignment =* is **not** an operator or language construct in the PHP language, but instead it is used internally to

« previous php.standards (#178) next »