Bug #76507 [NEW]: IAMP break CURL https request.

From: Date: Thu, 21 Jun 2018 02:13:00 +0000
Subject: Bug #76507 [NEW]: IAMP break CURL https request.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215822@lists.php.net to get a copy of this message
From:             wensting at gmail dot com
Operating system: MACOS 10.12.5
PHP version:      7.2.6
Package:          IMAP related
Bug Type:         Bug
Bug description:IAMP break CURL https request.

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.






-- 
Edit bug report at https://bugs.php.net/bug.php?id=76507&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76507&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76507&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76507&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76507&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76507&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76507&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76507&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76507&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76507&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76507&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76507&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76507&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76507&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76507&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76507&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76507&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76507&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76507&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76507&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76507&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#215822) next »