ID: 9793 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Analyzed Status: Closed Bug Type: LDAP related Operating System: Linux PHP Version: 4.0.4pl1 New Comment:
I'm pretty sure I've fixed this in CVS a couple of weeks or so ago, you are now required to use 0, 1, ... Please try latest CVS or a snapshot from snaps.php.net. Reopen if I'm wrong. Previous Comments: ------------------------------------------------------------------------ [2001-07-03 14:26:16] [EMAIL PROTECTED] I made a little mistake. This can be reproduced when ldap extension is compiled as shared extension. --Jani ------------------------------------------------------------------------ [2001-07-03 04:53:29] [EMAIL PROTECTED] No feedback ------------------------------------------------------------------------ [2001-06-04 00:13:33] [EMAIL PROTECTED] Please try the latest release candidate from: http://www.php.net/~andi/php-4.0.6RC2.tar.gz Also, try generating a GDB backtrace if it still crashes. (I'm still unable to reproduce this..) --Jani ------------------------------------------------------------------------ [2001-03-19 03:33:21] [EMAIL PROTECTED] Bug Database <[EMAIL PROTECTED]> writes: > I can't reproduce this. Which ldap library are you using? > OpenLdap? And version? I tried with openldap 2.0.7 and > it just gave an error on that first example. I should have been more descriptive. libraries are openldap 2.0.7. Complete script is here and it's strace is attached: <?php if (!extension_loaded("ldap")) { dl("ldap.so"); } $_ldap = ldap_connect("127.0.0.1"); ldap_bind($_ldap, "cn=admin,ou=People,dc=globe,dc=cz", "admin"); ldap_mod_add($_ldap, "cn=admin,ou=People,dc=globe,dc=cz", Array("mail" => Array("1" => "[EMAIL PROTECTED]"))); ldap_close($_ldap); ?> Output was: ondrej@druid:~$ php4 ldap.php Segmentation fault ------------------------------------------------------------------------ [2001-03-16 13:50:16] [EMAIL PROTECTED] I can't reproduce this. Which ldap library are you using? OpenLdap? And version? I tried with openldap 2.0.7 and it just gave an error on that first example. --Jani ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=9793 Edit this bug report at http://bugs.php.net/?id=9793&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]