|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3613 ldap_mod_replace does not handle binary values properly
Submitted: 2000-02-24 17:18 UTC Modified: 2001-02-10 15:27 UTC
From: rb at odn dot de Assigned:
Status: Closed Package: LDAP related
PHP Version: 3.0.14 OS: Linux 2.2.13 - glibc2.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: rb at odn dot de
New email:
PHP Version: OS:


 [2000-02-24 17:18 UTC] rb at odn dot de
$fd = fopen( $file, "r" );
$contents = fread( $fd, filesize( $file) );
fclose( $fd );

ldap_mod_replace($ds, $searchroot, array ( $attr => $contents));      


./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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-25 05:57 UTC]
This is bit old bug report (over 6 months) but is this still
a problem? By updating to PHP4 (latest CVS or snapshot from will solve this problem.

Is this possible for you or should the fix for this bug be backported
to php3 ?

 [2001-02-10 15:27 UTC]
no feedback, closing.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Oct 02 12:01:25 2023 UTC