ldap_free_entry

bool ldap_free_entry(resource result) 

Frees memory used for an entry.

Returns:

TRUE on success; FALSE on error

Description:

ldap_free_entry() frees the memory associated with an LDAP result entry. This need only be done if you’re concerned with memory usage inside your script, as the result memory is freed when the script finishes. In a text-only directory, this is often insignificant, but if you’re storing JPEG images with each entry, it increases in importance.

Availability:

UNIX/Linux, Windows

Version:

3.0.2+, 4+

Example:

Free entry memory
ldap_free_entry($result); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.