PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_LDAP » Bug #8648

Make Net_LDAP->getVersion() static

Details

Request #8648Make Net_LDAP->getVersion() static
Submitted2006-09-07 08:46 UTC
Fromb dot hallinger at skyforcesystems dot de
Assignedbeni
StatusClosed
PackageNet_LDAP
PHP VersionIrrelevant
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.