In PHP, references allow you to create multiple names for the same variable, enabling you to access and manipulate its value through different identifiers.
They are denoted by the ampersand symbol & placed before the variable name during declaration or assignment.
@Ann, I guess you can link this rule to \http://cwe.mitre.org/data/definitions/374.html.
=== on 15 Oct 2014, 09:53:48 Linda Martin wrote:
\[~ann.campbell.2] Your description made me read the PHP Manual, and in addition to what you already have written I saw the following:
____
As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated [...] *And as of PHP 5.4.0, call-time pass-by-reference was removed, so using it will raise a fatal error.*
____
I don't know if it was already there when you read the Manual, in any case I think it would be worth mentioning it in the description. And why note even quote the Manual ?
WDYT ?
=== on 15 Oct 2014, 11:50:37 Ann Campbell wrote:
\[~linda.martin] I did not see the removal notice. Thanks for finding it. I've updated the description per your recommendations.