<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://php-secure-coding.ohgaki.net/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>PHP Secure Coding Standard - ja:rule:dcl</title>
        <description></description>
        <link>https://php-secure-coding.ohgaki.net/</link>
        <lastBuildDate>Wed, 01 Jul 2026 21:01:11 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://php-secure-coding.ohgaki.net/lib/exe/fetch.php/wiki/dokuwiki.svg</url>
            <title>PHP Secure Coding Standard</title>
            <link>https://php-secure-coding.ohgaki.net/</link>
        </image>
        <item>
            <title>参照に参照を代入しない</title>
            <link>https://php-secure-coding.ohgaki.net/doku.php/ja/rule/dcl/%E5%8F%82%E7%85%A7%E3%81%AB%E5%8F%82%E7%85%A7%E3%82%92%E4%BB%A3%E5%85%A5%E3%81%97%E3%81%AA%E3%81%84?rev=1457384221&amp;do=diff</link>
            <description>参照に参照を代入しない

[概要]

非適合コード例


function foo(&amp;$var)
{
    $var =&amp; $GLOBALS[&quot;baz&quot;];
}
foo($bar); 


$barは$GLOBALS[&#039;baz&#039;]の参照とはならない

適合コード例


function foo(&amp;$var)
{
    return &amp; $GLOBALS[&quot;baz&quot;];
}
$bar = foo($bar);</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 07 Mar 2016 20:57:01 +0000</pubDate>
        </item>
    </channel>
</rss>
