|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2021 The PHP Group
All rights reserved.
Last updated: Tue Aug 03 11:01:23 2021 UTC