I have spent a lot of time to make an LDAPS connection to a MS AD Global Catalog port 3269
My five Cents:
ldap_connect("ldaps://example.com", 3269)
=> Connection to 636.... :(, DC only
ldap_connect("ldaps://example.com:3269")
=> Connection to 3269.... :), GC as expected
May it helps...