main/phpldapadmin: fixes for php-5.5.16

(cherry picked from commit b7c7f3a32c989f109b8015cdecf58c3061e0b260)
main/phpldapadmin: one more fix for php-5.5.16

(cherry picked from commit 2dbd4a1dd43736b1ceea4119732e08b7b9846aa9)