|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65721 configure script broken in 5.5.4 and 5.4.20 when enabling imap
Submitted: 2013-09-20 09:45 UTC Modified: 2013-09-20 21:23 UTC
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:2 (50.0%)
From: ryotakatsuki at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.5.4 OS: All
Private report: No CVE-ID: None
 [2013-09-20 09:45 UTC] ryotakatsuki at gmail dot com
When compiling PHP enabling IMAP (--with-imap) the configure script breaks 
checking for c-client.a because of invalid syntax in the conditions:

if test ! -r "$IMAP_DIR/c-client/libc-client.a" && -r "$IMAP_DIR/c-client/c-
client.a" ; then
elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && -r 
"$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then

Where the second check is missing the "test" command (&& -r ... instead of && test 
-r ...),. It should be:

if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-
client.a" ; then
elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r 
"$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then


php-imap-configure-error.patch (last revision 2013-09-20 09:45 UTC by ryotakatsuki at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-20 09:47 UTC] ryotakatsuki at gmail dot com
It also happens in 5.4.20
 [2013-09-20 21:23 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-09-20 21:23 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

Committed; thank you for the patch!

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC