mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
db281eb817
commit
c709b0ba84
1 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@
|
|||
<example>
|
||||
<title><function>Fsockopen</function> Example</title>
|
||||
<programlisting role="php">
|
||||
$fp = fsockopen ("www.php.net", 80, &$errno, &$errstr, 30);
|
||||
$fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30);
|
||||
if (!$fp) {
|
||||
echo "$errstr ($errno)<br>\n";
|
||||
} else {
|
||||
|
@ -227,7 +227,7 @@ if (!$fp) {
|
|||
<title>Using UDP connection</title>
|
||||
<programlisting role="php">
|
||||
<?php
|
||||
$fp = fsockopen("udp://127.0.0.1", 13, &$errno, &$errstr);
|
||||
$fp = fsockopen("udp://127.0.0.1", 13, $errno, $errstr);
|
||||
if (!$fp) {
|
||||
echo "ERROR: $errno - $errstr<br>\n";
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue