Date: 01/19/00
- Next message: argus <email protected>: "[PHP-DEV] Bug #3253: Can not open any sockets"
- Previous message: Joey: "Re: [PHP-DEV] Bug #3240: Y2K Problem"
- In reply to: eda <email protected>: "[PHP-DEV] PHP 4.0 Bug #3252: LDAP ldap_add - core dumped"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You seem to be using PHP 3 but you submitted a bug report for PHP 4.
I could not reproduce this problem in PHP 4 although I know there are some
LDAP problems there too.
Andi
On 19 Jan 2000 eda <email protected> wrote:
> From: eda <email protected>
> Operating system: RedHat 6.1
> PHP version: 4.0 Beta 3
> PHP Bug Type: Scripting Engine problem
> Bug description: LDAP ldap_add - core dumped
>
> <?php
> $ds=ldap_connect("localhost"); // assuming the LDAP server is on this host
>
> if ($ds) {
> // bind with appropriate dn to give update access
> $r=ldap_bind($ds,"cn=root, o=vaz, c=ru", "ldapsecret");
>
> // prepare data
> $info["cn"]="John Jones";
> $info["sn"]="Jones";
> $info["mail"]="jonj <email protected>";
> $info["objectclass"]="person";
> echo $info["cn"]." !! ";
>
> // add data to directory
> $r=ldap_add($ds, "cn=John Jones, o=vaz, c=ru", $info);
>
> ldap_close($ds);
> } else {
> echo "Unable to connect to LDAP server";
> }
> ?>
>
>
> ./configure \
> --disable-debug \
> --with-mod_charset \
> --with-gdbm \
> --with-ndbm \
> --with-ftp \
> --with-zlib \
> --with-snmp \
> --with-ldap
>
> file ext/ldap/ldap.c in function php3_ldap_do_modify(..
>
> problem in call (line 1171) : zend_hash_get_current_data(entry->value.ht, (void **) &value);
>
> returned false , but not controled it in source code
> Why is false, i don't undestand.
> I can see key in "entry->value.ht" , but don't see
> data.
> I am use ddd for debug.
> Sorry for bad english.
>
>
>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: argus <email protected>: "[PHP-DEV] Bug #3253: Can not open any sockets"
- Previous message: Joey: "Re: [PHP-DEV] Bug #3240: Y2K Problem"
- In reply to: eda <email protected>: "[PHP-DEV] PHP 4.0 Bug #3252: LDAP ldap_add - core dumped"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

