Bug #74481 [NEW]: segfault getimagesize using zip:// stream
From: sergey dot kudich at gmail dot com
Operating system: Ceontos 7
PHP version: 7.0.18
Package: GetImageSize related
Bug Type: Bug
Bug description:segfault getimagesize using zip:// stream
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 bug report at https://bugs.php.net/bug.php?id=74481&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74481&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74481&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74481&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74481&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74481&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74481&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74481&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74481&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74481&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74481&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74481&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74481&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74481&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74481&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74481&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74481&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74481&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74481&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74481&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74481&r=mysqlcfg
Thread (8 messages)
- sergey dot kudich at gmail dot com