svn: /phpdoc/en/trunk/language/ references.xml
| From: | Torben Wilson | Date: | Thu, 10 Sep 2009 06:38:08 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ references.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4894@lists.php.net to get a copy of this message | ||
torben Thu, 10 Sep 2009 06:38:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288224
Log:
A little more explanation about why references are not like C pointers.
Addresses bug #49082.
Bug: http://bugs.php.net/49082 (Open) What References Are -
not C pointers
Changed paths:
U phpdoc/en/trunk/language/references.xml
Modified: phpdoc/en/trunk/language/references.xml
===================================================================
--- phpdoc/en/trunk/language/references.xml 2009-09-10 06:05:12 UTC (rev 288223)
+++ phpdoc/en/trunk/language/references.xml 2009-09-10 06:38:08 UTC (rev 288224)
@@ -5,15 +5,18 @@
<sect1 xml:id="language.references.whatare">
<title>What References Are</title>
- <simpara>
- References in PHP are a means to access the same variable content
- by different names. They are not like C pointers; instead, they are
- symbol table aliases. Note that in PHP, variable name and variable
- content are different, so the same content can have different names.
- The closest analogy is with Unix filenames and files -
- variable names are directory entries, while variable content is
- the file itself. References can be likened to hardlinking in
- Unix filesystem.
+ <simpara>
+ References in PHP are a means to access the same variable content
+ by different names. They are not like C pointers; for instance,
+ you cannot perform pointer arithmetic using them, they are not
+ actual memory addresses, and so on. See
+ <xref linkend="language.references.arent" /> for more
+ information. Instead, they are symbol table aliases. Note that in
+ PHP, variable name and variable content are different, so the same
+ content can have different names. The closest analogy is with
+ Unix filenames and files - variable names are directory entries,
+ while variable content is the file itself. References can be
+ likened to hardlinking in Unix filesystem.
</simpara>
</sect1>