title: PHP curl broken in 5.6 vs 5.4 (Centos7)
body: <p>I run a simple php script using curl on Centos7 like:</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "http://1.2.3.4:80/hello");
  $result = curl_exec($ch);
  print_r(curl_errno($ch));
  </code></pre>
  
  <p>This works perfectly in an instance using PHP 5.4. I had to upgrade to PHP 5.6 and mysteriously this stopped working, giving me <code>CURLE_FAILED_INIT</code>.</p>
  
  <p><code>phpinfo()</code> of the two versions don't seem to show differences between curls (5.4 and then 5.6)</p>
  
  <p><a href="https://i.stack.imgur.com/ARwN0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ARwN0.png" alt="5.4"></a> <a href="https://i.stack.imgur.com/ytZDp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ytZDp.png" alt="5.6"></a></p>
  
  <p>both instances have <code>Additional .ini files parsed</code> which both list a <code>curl.ini</code> which is equal in both cases:</p>
  
  <pre><code>extension=curl.so
  </code></pre>
  
  <p>Anyone has any pointer on how to troubleshoot? If I bring up the 5.4 instance this immediately works; switch back and broken again.</p>
  
  <p>Also, there are no relevant logs (debug level).</p>
  
  <p>Installation info:</p>
  
  <pre><code># yum install rh-php56
  # yum install rh-php56-php-curl
  ... rh-php56-php-common-5.6.25-1.el7.x86_64 is installed and updated 
  # yum list rh-php56\*
  rh-php56.x86_64                       2.3-1.el7    
  rh-php56-php.x86_64                   5.6.25-1.el7 
  rh-php56-php-bcmath.x86_64            5.6.25-1.el7 
  rh-php56-php-cli.x86_64               5.6.25-1.el7 
  rh-php56-php-common.x86_64            5.6.25-1.el7 
  rh-php56-php-dba.x86_64               5.6.25-1.el7 
  rh-php56-php-devel.x86_64             5.6.25-1.el7 
  rh-php56-php-embedded.x86_64          5.6.25-1.el7 
  rh-php56-php-enchant.x86_64           5.6.25-1.el7 
  rh-php56-php-gd.x86_64                5.6.25-1.el7 
  rh-php56-php-gmp.x86_64               5.6.25-1.el7 
  rh-php56-php-intl.x86_64              5.6.25-1.el7 
  rh-php56-php-ldap.x86_64              5.6.25-1.el7 
  rh-php56-php-mbstring.x86_64          5.6.25-1.el7 
  rh-php56-php-mysqlnd.x86_64           5.6.25-1.el7 
  rh-php56-php-odbc.x86_64              5.6.25-1.el7 
  rh-php56-php-opcache.x86_64           5.6.25-1.el7 
  rh-php56-php-pdo.x86_64               5.6.25-1.el7 
  rh-php56-php-pear.noarch              1:1.9.5-4.el7
  rh-php56-php-pecl-jsonc.x86_64        1.3.6-3.el7  
  rh-php56-php-pecl-jsonc-devel.x86_64  1.3.6-3.el7  
  rh-php56-php-pecl-memcache.x86_64     3.0.8-12.el7 
  rh-php56-php-pecl-mongo.x86_64        1.5.8-3.el7  
  rh-php56-php-process.x86_64           5.6.25-1.el7 
  rh-php56-php-pspell.x86_64            5.6.25-1.el7 
  rh-php56-php-recode.x86_64            5.6.25-1.el7 
  rh-php56-php-snmp.x86_64              5.6.25-1.el7 
  rh-php56-php-soap.x86_64              5.6.25-1.el7 
  rh-php56-php-xml.x86_64               5.6.25-1.el7 
  rh-php56-php-xmlrpc.x86_64            5.6.25-1.el7 
  rh-php56-runtime.x86_64               2.3-1.el7    
  </code></pre>
  
  <p>Thanks!</p>