LDAP add/modify error

From: Date: Tue, 14 Sep 1999 22:53:02 +0000
Subject: LDAP add/modify error
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4456@lists.php.net to get a copy of this message
Hello, I found an error while using ldapp_add/modify (ldap_search is working OK). Is LDAP support supposed to be stable? Below is the debugging info I could get: ------------ script ---------------------- if($ds=ldap_connect('localhost',389)): $r=ldap_bind($ds,$LD["rootdn"], $LD["rootpasswd"]); if($r): $T['uid']='test'; $T['cn']='test'; $T['objectclass']='top'; $r=ldap_modify($ds, "uid=test,o=myorg", $T); ### it dies here (line 13) if($r): echo "Modify OK"; --------- end of script --------------- My system: php4 - latest cvs, compiled --with-mysql=/usr --with-xml \ --enable-debug --with-ldap=/usr --with-imap=/usr --with-system-regex Platform: RH6.0 / linux 2.2.10 / Amd-K6/233 LDAP: Openldap 1.2.6 # /usr/bin/php < script.html Content-Type: text/html <br> <b>Warning</b>: LDAP: modify operation could not be completed. in <b>-</b> on line <b>13</b><br> Segmentation fault (core dumped) gdb: Core was generated by `/usr/bin/php'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libgdbm.so.2...done. Reading symbols from /usr/lib/libldap.so.1...done. Reading symbols from /usr/lib/liblber.so.1...done. Reading symbols from /usr/lib/mysql/libmysqlclient.so.7...done. Reading symbols from /lib/libpam.so.0...done. Reading symbols from /lib/libdl.so.2...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /lib/libcrypt.so.1...done. Reading symbols from /lib/libnsl.so.1...done. Reading symbols from /lib/libresolv.so.2...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /lib/libnss_nisplus.so.2...done. Reading symbols from /lib/libnss_files.so.2...done. ---Type <return> to continue, or q <return> to quit--- #0 _zval_ptr_dtor (zval_ptr=0x8181d50, __zend_filename=0x8106647 "zend_variables.c", __zend_lineno=174) at zend_execute_API.c:213 213 (*zval_ptr)->refcount--; (gdb) bt #0 _zval_ptr_dtor (zval_ptr=0x8181d50, __zend_filename=0x8106647 "zend_variables.c", __zend_lineno=174) at zend_execute_API.c:213 #1 0x8074479 in _zval_ptr_dtor_wrapper (zval_ptr=0x8181d50) at zend_variables.c:174 #2 0x807753a in zend_hash_destroy (ht=0x8181c50) at zend_hash.c:740 #3 0x80742b3 in _zval_dtor (zvalue=0x8181c08, __zend_filename=0x8105e9c "zend_execute_API.c", __zend_lineno=215) at zend_variables.c:68 #4 0x806fd92 in _zval_ptr_dtor (zval_ptr=0x817d600, __zend_filename=0x8105e9c "zend_execute_API.c", __zend_lineno=538) at zend_execute_API.c:215 #5 0x80705d3 in zend_ptr_stack_clear_multiple () at zend_execute_API.c:538 #6 0x807d92f in execute (op_array=0x817d840) at zend_execute.c:1498 #7 0x8061876 in php_execute_script (primary_file=0xbffffcec) at main.c:1168 #8 0x80667f1 in main (argc=1, argv=0xbffffd44) at cgi_main.c:468 #9 0x400dccb3 in __libc_start_main (main=0x8066380 <main>, argc=1, argv=0xbffffd44, init=0x805f6e4 <_init>, fini=0x80f862c <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffd3c) at ../sysdeps/generic/libc-start.c:78 Hope it helps, Michal -- ___ / \ ___ Michal Kolodziejczyk Centrum Nowych Technologii | |\ | | miko@cnt.pl Uphagena 2, 80-237 Gdansk | | \| | tel/fax (58) 345 55 45 \ __/ ----------------- http://www.cnt.pl ----------------------

« previous php.version4 (#4456) next »