|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76507 IAMP break CURL https request.
Submitted: 2018-06-21 02:12 UTC Modified: -
From: wensting at gmail dot com Assigned:
Status: Open Package: IMAP related
PHP Version: 7.2.6 OS: MACOS 10.12.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
42 - 36 = ?
Subscribe to this entry?

 [2018-06-21 02:12 UTC] wensting at gmail dot com
RUNNING php-fpm  + NGINX 

while IMAP not enabled , everything works well with CURL . 

after enable IMAP extension,  CURL will break with https.  

PHP-fpm LOG 

[20-Jun-2018 18:37:29] WARNING: [pool www] child 99680 exited on signal 11 (SIGSEGV) after 187.014772 seconds from start


The test script works as expected when running via php-cli , no matter imap enabled or not.

but with php-fpm or / laravel tinker. it breaks immediately with https.


but if Starting php-fpm as root or staring laravel tinker as root . everything works.

Test script:
$ch = curl_init();
curl_setopt($ch, CURLOPT_VERBOSE, '1');
$url = '';
curl_setopt($ch, CURLOPT_URL, $url );

Expected result:
IMAP extension should not require any root permission to start php-fpm on macos in order not to break CURL with HTTPS.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Oct 21 18:01:27 2019 UTC