Correcting example so pass by ref error isnt shown (although when I tested this it didnt happen to me). Anyway new example also works fine.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@38549 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
James Moore 2001-01-03 20:10:26 +00:00
parent db281eb817
commit c709b0ba84

View file

@ -209,7 +209,7 @@
<example>
<title><function>Fsockopen</function> Example</title>
<programlisting role="php">
$fp = fsockopen ("www.php.net", 80, &amp;$errno, &amp;$errstr, 30);
$fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)&lt;br&gt;\n";
} else {
@ -227,7 +227,7 @@ if (!$fp) {
<title>Using UDP connection</title>
<programlisting role="php">
&lt;?php
$fp = fsockopen("udp://127.0.0.1", 13, &amp;$errno, &amp;$errstr);
$fp = fsockopen("udp://127.0.0.1", 13, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr&lt;br&gt;\n";
} else {