php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76507 IMAP break CURL https request.
Submitted: 2018-06-21 02:12 UTC Modified: 2021-09-19 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: wensting at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: IMAP related
PHP Version: 7.2.6 OS: MACOS 10.12.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wensting at gmail dot com
New email:
PHP Version: OS:

 

 [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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-08 16:05 UTC] cmb@php.net
-Summary: IAMP break CURL https request. +Summary: IMAP break CURL https request. -Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-09-08 16:05 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1] for you?

[1] <https://www.php.net/supported-versions.php>
 [2021-09-19 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC