LDAP - The Adventure Continues
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47
47 -> $info =3D ldap_get_entries($ds, $sr);
$sr=3Dldap_search($ds, "dc=3Dfoo,dc=3Dlocal", "cn=3D*");
$ds is the connection to the LDAP server
Does anyone know what this means?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: LDAP - The Adventure Continues
jblanchard [at] 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.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php