PHP 8.2.31
Preview: CallTimePassByReferenceStandard.xml Size: 665 B
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml

<documentation title="Call-Time Pass-By-Reference">
    <standard>
    <![CDATA[
    Call-time pass-by-reference is not allowed. It should be declared in the function definition.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Pass-by-reference is specified in the function definition.">
        <![CDATA[
function foo(<em>&</em>$bar)
{
    $bar++;
}

$baz = 1;
foo($baz);
        ]]>
        </code>
        <code title="Invalid: Pass-by-reference is done in the call to a function.">
        <![CDATA[
function foo($bar)
{
    $bar++;
}

$baz = 1;
foo(<em>&</em>$baz);
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
665 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
617 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
800 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
772 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).