Bug #3613: ldap_mod_replace does not handle binary values properly

From: Date: Thu, 24 Feb 2000 22:18:25 +0000
Subject: Bug #3613: ldap_mod_replace does not handle binary values properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-15963@lists.php.net to get a copy of this message
From: rb@odn.de Operating system: Linux 2.2.13 - glibc2.1 PHP version: 3.0.14 PHP Bug Type: LDAP related Bug description: ldap_mod_replace does not handle binary values properly $fd = fopen( $file, "r" ); $contents = fread( $fd, filesize( $file) ); fclose( $fd ); $ds=ldap_connect("-----------"); $r=ldap_bind($ds,"--------------","------"); ldap_mod_replace($ds, $searchroot, array ( $attr => $contents)); ldap_close($ds); --- ./configure --disable-debug --with-apache=/usr/src/apache_1.3.11 --without-gd --with-ftp --with-mysql --with-rege x=apache --enable-trans-sid --with-ldap=/usr/local --enable-track-vars --- in config.h i undefined HAVE_GETRUSAGE, so it would finally compile... --- I would want to store gif/jpeg images uploaded via http post into my LDAP directory, but it won't do it... probably it's because of the usage of string functions, again... it just stores several bytes... then cuts off... using the comandline ldap-toys works fine

« previous php.dev (#15963) next »