From: brian dot bush at alltel dot com Operating system: Sun Solaris 8 PHP version: 4.3.10 PHP Bug Type: LDAP related Bug description: ldap_start_tls function undefined
Description: ------------ We compiled php-4.3.10 --with-ldap and --with-openssl on a solaris box. When we try to call the ldap_start_tls() function, we get an error that says it is undefined: Fatal error: Call to undefined function: ldap_start_tls() in blah blah. It looks like the symbol is not being defined in the php_config.h headers. I tried adding: #define HAVE_LDAP_START_TLS_S 1 In main/php_config.h it breaks the build. In include/php/main/php_config.h it does nothing. What else should we try? --brian Reproduce code: --------------- <?php $ldapconn = @ldap_connect('ldap.company.com'); @ldap_set_option($ldapconn,LDAP_OPT_PROTOCOL_VERSION,3); ldap_start_tls($ldapconn); ?> Expected result: ---------------- Should print nothing to the screen (IE: no errors). Actual result: -------------- Fatal error: Call to undefined function: ldap_start_tls() in ldaptest.php on line 8 -- Edit bug report at http://bugs.php.net/?id=33410&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33410&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33410&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33410&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33410&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33410&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33410&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33410&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33410&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33410&r=support Expected behavior: http://bugs.php.net/fix.php?id=33410&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33410&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33410&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33410&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33410&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33410&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33410&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33410&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33410&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33410&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33410&r=mysqlcfg