title: PHP - Only variables can be passed by reference
body: <pre><code>$v1['ip'] = $url;
  </code></pre>
  
  <p>.</p>
  
  <p>why isn´t the following working ?</p>
  
  <pre><code>$sock = @stream_socket_client('tcp://'.$v1['ip'].':25565'. $errno, $errstr, 1);
  </code></pre>
  
  <p>but this:</p>
  
  <pre><code>$sock = @stream_socket_client('tcp://'.$v1['ip'].':25565'. $errno, $errstr);
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>$sock = @stream_socket_client('tcp://'.$url.':'.$port, $errno, $errstr, 1);
  </code></pre>
  
  <p>what is the default timeout ?</p>