Bug #74481 [Opn->Fbk]: segfault getimagesize using zip:// stream

From: Date: Thu, 20 Apr 2017 14:50:14 +0000
Subject: Bug #74481 [Opn->Fbk]: segfault getimagesize using zip:// stream
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208683@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74481&edit=1 ID: 74481 Updated by: danack@php.net Reported by: sergey dot kudich at gmail dot com Summary: segfault getimagesize using zip:// stream -Status: Open +Status: Feedback Type: Bug Package: GetImageSize related Operating System: Ceontos 7 PHP Version: 7.0.18 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2017-04-20 14:40:25] sergey dot kudich at gmail dot com Description: ------------ Segmentation Fault if we try getimagesize on zip:// strem All was ok on php 7.0.16, this is related to phpoffice/phpexcel library example - just try any file to open, we tried to get image from excel file so putting here example for it getimagesize('zip:///home/user/workbook.xlsx#xl/media/image1.gif'); If we trying to open this file via fopen $h = fopen('zip:///home/user/workbook.xlsx#xl/media/image1.gif', 'br'); PHP Warning: fopen(zip:///home/user/workbook.xlsx#xl/media/image1.gif): failed to open stream: operation failed in ... Same time file_get_contents working well ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74481&edit=1

« previous php.bugs (#208683) next »