[EMAIL PROTECTED] 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.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to