Bug #72088 [Opn]: file_get_contents() return empty in some urls

From: Date: Sun, 24 Apr 2016 08:29:07 +0000
Subject: Bug #72088 [Opn]: file_get_contents() return empty in some urls
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200742@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72088&edit=1 ID: 72088 Updated by: laruence@php.net Reported by: alejosimon at gmail dot com Summary: file_get_contents() return empty in some urls Status: Open Type: Bug Package: HTTP related Operating System: Windows 7 x64 PHP Version: 7.0.5 -Assigned To: +Assigned To: ab Block user comment: N Private report: N New Comment: @welting, are you able to reproduce this? Previous Comments: ------------------------------------------------------------------------ [2016-04-23 19:48:55] alejosimon at gmail dot com Description: ------------ When I request via file_get_contents this URL: $url = 'https://wswhomo.afip.gov.ar/wsfe/service.asmx?wsdl' ; the response is empty, without errors. but some other URLs work ok. BUT BUT this bug ONLY is present over Windows 64btis AND PHP_x64 build... In linux and in both cases, Windows 32bits and/or PHP x32 always ok! THE PROBLEM is only on PHP win64 versions. Test script: --------------- <?php error_reporting( E_ALL ); ini_set( "display_errors", 1 ); $url = 'https://wswhomo.afip.gov.ar/wsfe/service.asmx?wsdl' ; //$url = 'https://www.google.com.ar' ; $response = file_get_contents( $url ); //print_r( $response ); // string empty print_r( $http_response_header ); // array() empty ?> Expected result: ---------------- Array ( [0] => HTTP/1.1 200 OK [1] => Connection: close [2] => Date: Sat, 23 Apr 2016 19:43:24 GMT [3] => Server: Microsoft-IIS/6.0 [4] => MicrosoftOfficeWebServer: 5.0_Pub [5] => X-Powered-By: ASP.NET [6] => X-AspNet-Version: 2.0.50727 [7] => Cache-Control: private, max-age=0 [8] => Content-Type: text/xml; charset=utf-8 [9] => Content-Length: 24646 ) // This result from PHP win32. Actual result: -------------- Array( ) // This result from PHP win64. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72088&edit=1

« previous php.bugs (#200742) next »