Bug #73334 [Opn->Fbk]: getimagesize is not working although allow_url_fopen = On

From: Date: Mon, 17 Oct 2016 17:34:58 +0000
Subject: Bug #73334 [Opn->Fbk]: getimagesize is not working although allow_url_fopen = On
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204880@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73334&edit=1 ID: 73334 Updated by: cmb@php.net Reported by: xuathang at shopqua dot com Summary: getimagesize is not working although allow_url_fopen = On -Status: Open +Status: Feedback Type: Bug Package: GetImageSize related Operating System: Windows Server 2008 PHP Version: 5.6.27 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Please always make sure that you have error_reporting set to E_ALL before reporting a bug, and post the relevant warnings or notices. I get with *both* php-5.6.26-nts-Win32-VC11-x86 and php-5.6.27-nts-Win32-VC11-x86: | Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: | error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed Please verify that you get the same message. If so, you'll have to set openssl.cafile to an appropriate Certificate Authority file. Previous Comments: ------------------------------------------------------------------------ [2016-10-17 15:42:55] xuathang at shopqua dot com Description: ------------ The below code is working fine in php-5.6.26-nts-Win32-VC11-x64 but not working in php-5.6.27-nts-Win32-VC11-x64 (although allow_url_fopen = On): Test script: --------------- $from_path = 'https://fbcdn-photos-b-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-0/p320x320/14370381_1121664761255364_721077709461102630_n.png?oh=f6e5bdfbde8ad5cfda137476e2b5bf97&oe=5872A162&__gda__=1483223263_661dfde8b0e24e6a91903f6abb62fba1'; $image_info = getimagesize($from_path); var_dump($image_info); Expected result: ---------------- $image_info is not bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73334&edit=1

« previous php.bugs (#204880) next »