#29895 [NEW]: connect via CLI failed

From: Date: Mon, 30 Aug 2004 10:58:27 +0000
Subject: #29895 [NEW]: connect via CLI failed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65456@lists.php.net to get a copy of this message
From: sonny at sun dot com Operating system: Fedora Core 2 PHP version: 4.3.8 PHP Bug Type: LDAP related Bug description: connect via CLI failed Description: ------------ Just using a simple Script to try to connect to an LDAP Server. (see below) If I execute this script via apache mod_php4 it works fine a I get an Resource Handle back. But using CLI cause the same script an connection failed. The same behavior is in php 5.0.1. Module ldap is laoded via php.ini, because it's shared compliled. Reproduce code: --------------- $ld = ldap_connect("ldap.example,com", "389"); print_r($ld); ldap_close($ld); Expected result: ---------------- Working as well in CLI as well as module/SAPI. Actual result: -------------- Connect failed in CLI. [root@pecl parser]$ php4 t.php Warning: ldap_close() expects parameter 1 to be resource, boolean given in t.php on line 5 -- Edit bug report at http://bugs.php.net/?id=29895&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29895&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29895&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29895&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29895&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29895&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29895&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29895&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29895&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29895&r=support Expected behavior: http://bugs.php.net/fix.php?id=29895&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29895&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29895&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29895&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29895&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29895&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29895&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29895&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29895&r=float

« previous php.bugs (#65456) next »