php-doc-en/language
Tyson Andre 02f3bf5717 $this is not a **reference** to the called object.
It's the value of the called object.

Additionally, in php 7.1, it was no longer possible to reassign $this
indirectly through a reference.

Even in php 7.0, I'd think it would initially be more like a value
(that references can be created from) than
a reference, but I may be misunderstanding what this means or what $this
did in php 5 or older.

Closes GH-380.
2021-01-24 15:56:27 +01:00
..
context Typo in code output 2021-01-09 00:46:23 +00:00
control-structures require_once and include are expressions, not statements 2021-01-20 14:29:11 +01:00
errors Add match expression documentation 2020-11-22 17:31:20 +00:00
figures added xkcd image to the goto docs 2009-06-14 22:03:29 +00:00
oop5 $this is not a **reference** to the called object. 2021-01-24 15:56:27 +01:00
predefined chmod -x 2021-01-06 15:22:17 +03:00
types Add floats without exponent to numeric string grammar 2021-01-20 11:38:41 +00:00
wrappers Fix #69962: php://temp / php://memory don't support stat() 2020-12-18 12:44:03 +00:00
attributes.xml Small grammar fix for the Attributes docs 2021-01-22 14:05:08 +01:00
basic-syntax.xml Further removal of PHP 5 mentions in language section 2020-11-09 13:27:06 +00:00
constants.xml Refactor OO section 2021-01-13 04:00:03 +00:00
context.xml add Zip context options page 2017-04-05 09:28:14 +00:00
control-structures.xml Add match expression documentation 2020-11-22 17:31:20 +00:00
errors.xml Add embryonic error handling section, since we don't have one place for this. 2015-08-09 01:15:47 +00:00
exceptions.xml Exception updates 2020-11-25 23:03:02 +00:00
expressions.xml Use canonical type names 2020-11-02 15:39:04 +00:00
functions.xml Fix #80570: Incorrect named argument name for the nested function 2021-01-01 14:57:42 +01:00
generators.xml Remove mention of PHP 5 in Language Reference section 2020-10-31 19:13:58 +00:00
namespaces.xml Further removal of PHP 5 mentions in language section 2020-11-09 13:27:06 +00:00
oop5.xml Split type declarations into their dedicated page 2020-11-12 18:39:19 +00:00
operators.xml fix typo in arithmetic assignment operators 2021-01-05 22:54:51 +00:00
references.xml $this is not a **reference** to the called object. 2021-01-24 15:56:27 +01:00
types.xml Document mixed type (as of PHP 8.0.0) 2020-12-01 01:29:53 +00:00
variables.xml Remove some mentions of register globals 2021-01-16 11:30:04 +00:00
wrappers.xml Split wrappers.xml into wrappers/*.xml 2010-12-11 19:47:26 +00:00