Re: LDAP - The Adventure Continues
| From: | Jochem Maas | Date: | Tue, 07 Mar 2006 14:20:34 +0000 |
| Subject: | Re: LDAP - The Adventure Continues | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231585@lists.php.net to get a copy of this message | ||
jblanchard@pocket.com wrote:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to(8388608 / 1024) / 1024 = 8.
allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47 47 -> $info = ldap_get_entries($ds, $sr); $sr=ldap_search($ds, "dc=foo,dc=local", "cn=*"); $ds is the connection to the LDAP server Does anyone know what this means?at a guess the number of entries you are getting back doesn't fit into the 8 megs of memory your php script has. now I know next to nothing about ldap but I recall someone on the list asking about how to go about getting paged/limited results from a ldap query .... IIRC ldap supports paged/limited results but it was no clear (or maybe not even possible) to requested paged/limited result via php... anyway quick qorkaround would be to up or drop the memorylimit for the script in question.