Home » Networking » Net_LDAP » Bug #8648
Make Net_LDAP->getVersion() static
Details
| Request #8648 | Make Net_LDAP->getVersion() static |
|---|---|
| Submitted | 2006-09-07 08:46 UTC |
| From | b dot hallinger at skyforcesystems dot de |
| Assigned | beni |
| Status | Closed |
| Package | Net_LDAP |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-09-07 08:46 UTC] b dot hallinger at skyforcesystems dot de
Description:
------------
Currently, one must instantiate a Net_LDAP object to be able to get the version of the Net_LDAP used.
It would be good to be able to call this method static.
Test script:
---------------
Old:
$test_ldap = new Net_LDAP();
echo $test_ldap->getversion();
New:
echo Net_LDAP::getVersion();
[2006-09-07 09:45 UTC] b dot hallinger at skyforcesystems dot de
A patch is available at: http://beni.skyforcesystems.de/patches/net_ldap/patch_bug_8648.patch
It removes the variable $_version, makes getVersion() static callable and also moves the code upwards for maintaining reasons.