php.net |  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
Votes:4
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
Description:
------------
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
    ...    
fi 

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
    ...    
fi 




Patches

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

Pull Requests

History

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] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-09-20 21:23 UTC] aharvey@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Committed; thank you for the patch!

Commit:
https://github.com/php/php-src/commit/cc66eaa04b123bdfb6aaa7305713fa508640999e
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC