title: unset() static variable doesn't work?
body: <p>See this code:
  <a href="http://codepad.org/s8XnQJPN" rel="nofollow">http://codepad.org/s8XnQJPN</a></p>
  
  <pre><code>function getvalues($delete = false)
  {
     static $x;
     if($delete)
     {
        echo "array before deleting:\n";
        print_r($x);
        unset($x);
     }
     else
     {
        for($a=0;$a&lt;3;$a++)
        {
           $x[]=mt_rand(0,133);
        }
     }
  }
  
  getvalues();
  getvalues(true); //delete array values
  getvalues(true); //this should not output array since it is deleted
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>array before deleting:
  Array
  (
      [0] =&gt; 79
      [1] =&gt; 49
      [2] =&gt; 133
  )
  array before deleting:
  Array
  (
      [0] =&gt; 79
      [1] =&gt; 49
      [2] =&gt; 133
  )
  </code></pre>
  
  <p>Why is the array, <code>$x</code> not being deleted when it is being unset?</p>