The problem is not with the main of php but with ext/ldap/config.m4. The line should be changed from
"libldap.so.3" to "libldap.$SHLIB_SUFFIX_NAME.3"
Also, I'll do you one better. ;-) You probably want to change
liblber.so to liblber.$SHLIB_SUFFIX_NAME since the test you pointed to occurs if it can't find the former.
I posted the patch at
Please vote for it :-)
BTW, Mac OS X Jaguar has a version of LDAP (used to replace the old NetInfo manager). So you don't really need fink for this...
if you apply the patch above, you can then do
tychay at php dot net