php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73334 getimagesize is not working although allow_url_fopen = On
Submitted: 2016-10-17 15:42 UTC Modified: 2016-10-30 04:22 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: xuathang at shopqua dot com Assigned: cmb (profile)
Status: No Feedback Package: GetImageSize related
PHP Version: 5.6.27 OS: Windows Server 2008
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
41 + 24 = ?
Subscribe to this entry?

 
 [2016-10-17 15:42 UTC] 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)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-17 17:34 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-10-17 17:34 UTC] cmb@php.net
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.
 [2016-10-30 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 00:01:28 2024 UTC