Doc #78522 [NEW]: ldap_error returns null | string | bool
| From: | imbolk at gmail dot com | Date: | Tue, 10 Sep 2019 06:51:54 +0000 |
| Subject: | Doc #78522 [NEW]: ldap_error returns null | string | bool | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-16929@lists.php.net to get a copy of this message | ||
From: imbolk at gmail dot com
Operating system: MacOS/Linux
PHP version: 7.3.9
Package: Unknown/Other Function
Bug Type: Documentation Problem
Bug description:ldap_error returns null | string | bool
Description:
------------
https://www.php.net/ldap_error :
ldap_error ( resource $link_identifier ) : string
Test script:
---------------
php -r '@var_dump(ldap_error(fopen("/etc/passwd", "r")));'
php -r '@var_dump(ldap_error(1));'
Expected result:
----------------
string(0) ""
string(0) ""
Actual result:
--------------
false
NULL
--
Edit bug report at https://bugs.php.net/bug.php?id=78522&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78522&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78522&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78522&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78522&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78522&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78522&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78522&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78522&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78522&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78522&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78522&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78522&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78522&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78522&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78522&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78522&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78522&r=mysqlcfg