Bug #73214 [NEW]: krb5-config usage inadvertently skipped

From: Date: Fri, 30 Sep 2016 21:29:34 +0000
Subject: Bug #73214 [NEW]: krb5-config usage inadvertently skipped
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204381@lists.php.net to get a copy of this message
From: michael at orlitzky dot com Operating system: PHP version: 7.0.11 Package: *Compile Issues Bug Type: Bug Bug description:krb5-config usage inadvertently skipped Description: ------------ One of our ./configure options is --with-kerberos=<DIR>. The value of <DIR> gets stored in the PHP_KERBEROS variable if a directory is supplied. There is a function in aclocal.m4: AC_DEFUN([PHP_SETUP_KERBEROS],[ ... dnl If krb5-config is found try using it if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then KERBEROS_LIBS=$KRB5_CONFIG --libs gssapi KERBEROS_CFLAGS=$KRB5_CONFIG --cflags gssapi ... The krb5-config program is the preferred way to figure out which libs/flags are needed to build with kerberos support, because it works with both the MIT and Heimdal implementations. However, if you look carefully at the test, it's checking the value of <DIR> against "yes". Naturally that fails; instead it should be test "$PHP_KERBEROS" != "no" Doing so prevents the MIT lib names from getting appended when the Heimdal implementation is used. In other words, krb5-config works, it just isn't getting used. -- Edit bug report at https://bugs.php.net/bug.php?id=73214&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73214&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73214&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73214&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73214&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73214&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73214&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73214&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73214&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73214&r=support Expected behavior: https://bugs.php.net/fix.php?id=73214&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73214&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73214&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73214&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73214&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73214&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73214&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73214&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73214&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73214&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73214&r=mysqlcfg

« previous php.bugs (#204381) next »