|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 + 45 = ?
Subscribe to this entry?

 [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-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 02 01:05:53 2022 UTC