1<documentation title="Call-Time Pass-By-Reference">
2    <standard>
3    <![CDATA[
4    Call-time pass-by-reference is not allowed. It should be declared in the function definition.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Pass-by-reference is specified in the function definition.">
9        <![CDATA[
10function foo(<em>&</em>$bar)
11{
12    $bar++;
13}
14
15$baz = 1;
16foo($baz);
17        ]]>
18        </code>
19        <code title="Invalid: Pass-by-reference is done in the call to a function.">
20        <![CDATA[
21function foo($bar)
22{
23    $bar++;
24}
25
26$baz = 1;
27foo(<em>&</em>$baz);
28        ]]>
29        </code>
30    </code_comparison>
31</documentation>
32