php.net |  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
Description:
------------
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:
---------------
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_VERBOSE, '1');
$url = 'https://www.google.com';
curl_setopt($ch, CURLOPT_URL, $url );
curl_exec($ch);

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






Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 05:01:26 2019 UTC