ID:               25764
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jpbarrette at savoirfairelinux dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: linux
 PHP Version:      4.3.2
 New Comment:

Please generate a backtrace of the crash.


Previous Comments:
------------------------------------------------------------------------

[2003-10-06 14:46:10] jpbarrette at savoirfairelinux dot net

Description:
------------
when I'm trying to get the  LDAP_OPT_ERROR_STRING option, 
by the ldap_get_option function, after the ldap_bind function 
faillure, php is segfaulting. 

Reproduce code:
---------------
<?php
$host = "localhost";
$user = "";
$passwd = "";

$connection = @ldap_connect($this->host, $this->port);
if(!$connection){
  die("unable to connect");
}
    
if([EMAIL PROTECTED]($connection, $user, $passwd)){
  echo ldap_error($connection);
  $error  = "";
  echo ldap_get_option($connection, LDAP_OPT_ERROR_STRING, $error);
}
?>

Expected result:
----------------
I'm expecting to get the LDAP_OPT_ERROR_STRING value 



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25764&edit=1

Reply via email to