|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72987 configure: sed problem with "clean_configure_args"
Submitted: 2016-08-31 08:47 UTC Modified: 2017-01-09 05:12 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: lzsiga at freemail dot c3 dot hu Assigned: krakjoe (profile)
Status: Closed Package: Compile Warning
PHP Version: 7.0.10 OS: unix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: lzsiga at freemail dot c3 dot hu
New email:
PHP Version: OS:


 [2016-08-31 08:47 UTC] lzsiga at freemail dot c3 dot hu

For some reason, script 'configure' tries to clean its command-line with 'sed' (line 3451). Doing that, character /slash is used as sed-separator. Problem is variables CPPFLAGS, LDFLAGS and others might legally contain /slashes, so 'sed' will fail.
I suggest using sed once more: s;/;\\/;g (see the patch)

Test script:

Expected result:
lines like this should not be printed:

sed: Function s/'CPPFLAGS=-I/usr/local/include'// cannot be parsed.


configure.patch (last revision 2016-08-31 08:48 UTC by lzsiga at freemail dot c3 dot hu)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-12 11:54 UTC] lzsiga at freemail dot c3 dot hu
Oh, I see, it is (almost-)solved in 7.0.14
 [2017-01-09 05:12 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2017-01-09 05:12 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.

I think this was resolved, in any case, the patch should not target configure script ;)
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Jan 27 05:04:15 2023 UTC