From: d dot wynne at ljmu dot ac dot uk Operating system: SuSE 10.1 x86_64 PHP version: 4.4.4 PHP Bug Type: LDAP related Bug description: ldap_connect causes Segmentation fault
Description: ------------ Thsi line causes Segmentation fault: if (!($ldap = ldap_connect("localhost"))) { ./configure '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--enable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--with-mysql=/usr' '--with-mssql=/usr' '--with-oci8=/net/oracle/10g' '--disable-cgi' '--with-pear=/usr/share/php' '--with-openssl' '--with-ldap' '--with-apxs2=/usr/sbin/apxs2-prefork' Some libraries come with both 32bit & 64bit versions: openldap2-client-32bit-2.3.19-18 openldap2-client-2.3.19-18 I manually moved the /usr/lib64 libraries to /usr/lib. No way to use configure to do this. Rebuilt php 4.4.4 ( also tried 4.4.3 earlier ). Same result. -- Edit bug report at http://bugs.php.net/?id=38882&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38882&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38882&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38882&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38882&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38882&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38882&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38882&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38882&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38882&r=support Expected behavior: http://bugs.php.net/fix.php?id=38882&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38882&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38882&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38882&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38882&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38882&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38882&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38882&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38882&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38882&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38882&r=mysqlcfg