Doc #55165 [NEW]: Additional equal sign, misleading.
| From: | tamate at hotmail dot com | Date: | Sat, 09 Jul 2011 13:55:44 +0000 |
| Subject: | Doc #55165 [NEW]: Additional equal sign, misleading. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6854@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Additional equal sign, misleading.
Description:
------------
---
From manual page: http://www.php.net/function.socket-last-error%23Examples
---
Additional equal sign.
Test script:
---------------
Should be
if ($fp == false) {
$errorcode = socket_last_error();
$errormsg = socket_strerror($errorcode);
die("Couldn't create socket: [$errorcode] $errormsg");
}
and not
if ($fp === false) {
$errorcode = socket_last_error();
$errormsg = socket_strerror($errorcode);
die("Couldn't create socket: [$errorcode] $errormsg");
}
Expected result:
----------------
Using the old code, no error will be found, and thus, no error will be
shown.
Actual result:
--------------
If $fp fails, error code with error message will be displayed.
--
Edit bug report at https://bugs.php.net/bug.php?id=55165&edit=1
--
Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55165&r=trysnapshot52
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55165&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55165&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55165&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55165&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55165&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55165&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55165&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55165&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55165&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55165&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55165&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55165&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55165&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55165&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55165&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55165&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55165&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55165&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55165&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55165&r=mysqlcfg
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55165&r=trysnapshot54