php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55330 utf8_encode CRASH when $data is a very big string
Submitted: 2011-07-31 21:37 UTC Modified: 2011-08-01 15:05 UTC
From: bruno dot boccara at d2b dot com Assigned:
Status: Closed Package: Recode related
PHP Version: 5.3.6 OS: WINDOWS 2008 R2
Private report: No CVE-ID: None
 [2011-07-31 21:37 UTC] bruno dot boccara at d2b dot com
Description:
------------
Hello,
the http server is apache 2.2.17

I used for years the function utf8_encode to encode a file into this code.
The file is text string that I write into a file.
I remarked that if this file is more than a value thath I still not identified, but a very big size (in my test it was a 70MB file), the script crash and nothing is returned.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-31 21:51 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2011-07-31 21:51 UTC] pajoye@php.net
Are you sure you are not reaching the memory limit? What says the log (or set 
display_errors to on)
 [2011-08-01 15:05 UTC] bruno dot boccara at d2b dot com
-Status: Feedback +Status: Closed
 [2011-08-01 15:05 UTC] bruno dot boccara at d2b dot com
Very sorry you're right.
greater memory_size resolve the problem.
this is not a bug.

Regards.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC