Bug #65960 [NEW]: Segmentation fault when calling finfo_file
| From: | j at dvsl dot co | Date: | Thu, 24 Oct 2013 15:02:42 +0000 |
| Subject: | Bug #65960 [NEW]: Segmentation fault when calling finfo_file | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-182451@lists.php.net to get a copy of this message | ||
From: j at dvsl dot co
Operating system: Linux
PHP version: Irrelevant
Package: Filesystem function related
Bug Type: Bug
Bug description:Segmentation fault when calling finfo_file
Description:
------------
PHP/Apache is reporting default when trying to use finfo_file() method.
When opening from web (through apache2), segfault is reported in error
log:
[Wed Oct 23 14:32:25 2013] [notice] child pid 29084 exit signal
Segmentation fault (11)
When executing from cli e.g. php -q test.php, output is okay.
php -v
PHP 5.5.4-pl0-gentoo (cli) (built: Oct 18 2013 19:11:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend
Technologies
/usr/sbin/apache2 -v
Server version: Apache/2.2.25 (Unix)
Server built: Sep 20 2013 14:16:11
Test script:
---------------
<?php
$finfo = finfo_open(FILEINFO_MIME_TYPE, null);
$info = finfo_file($finfo, "index.php");
Expected result:
----------------
mime type of the file should be returned
Actual result:
--------------
nothing - apache/php segfaults
--
Edit bug report at https://bugs.php.net/bug.php?id=65960&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65960&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=65960&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65960&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65960&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65960&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65960&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65960&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65960&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65960&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65960&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65960&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65960&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65960&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65960&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65960&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65960&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65960&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65960&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65960&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65960&r=mysqlcfg