I'm having problems with setting the sizelimit of a search with php.

I'm using:
ldap_set_option($ldapconn, LDAP_OPT_SIZELIMIT, 20);

It returns 20 entries back, but i still get the error that the size limit has been exceeded. How do i stop the warning from showing?

thanks in advance...

chris