Bug #69135 [Asn->Dup]: finfo_file memory leak

From: Date: Mon, 02 Mar 2015 13:26:38 +0000
Subject: Bug #69135 [Asn->Dup]: finfo_file memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191036@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69135&edit=1

 ID:                 69135
 Updated by:         ab@php.net
 Reported by:        zeke at cs-cart dot com
 Summary:            finfo_file memory leak
-Status:             Assigned
+Status:             Duplicate
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   ubuntu
 PHP Version:        5.6.6
 Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

see bug #68819


Previous Comments:
------------------------------------------------------------------------
[2015-02-27 10:12:07] zeke at cs-cart dot com

Description:
------------
finfo_file fails with "allowed memory size of nnn bytes exhausted" on some file types. In
my case it's csv, which you can download here
https://www.dropbox.com/s/oivtic8g4r9tb20/products_general_11052014.csv?dl=0

The problem reproduces approximately since 5.5.14 to the latest 5.6.6.

Test script:
---------------
<?php

$f = finfo_open(FILEINFO_MIME);
finfo_file($f, './products_general_11052014.csv');

echo('ok');

Expected result:
----------------
"ok" should be output

Actual result:
--------------
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4294947908 bytes)
in test.php on line 4



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=69135&edit=1


Thread (2 messages)

« previous php.bugs (#191036) next »