|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-17 09:43 UTC] jani@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 17:00:01 2025 UTC |
Description: ------------ For my purpose I'am parsing into array of strings, 5mb file with near 30000 lines. file ? Reads entire file into an array It exhaust memory while doing. Code like: file("here_goes_5mb_30k_lines_file.cvs"); with 8mb opened for executing will produce: Fatal error: Allowed memory size of 8388608 bytes exhausted Reproduce code: --------------- file("here_goes_5mb_30k_lines_file.cvs"); Actual result: -------------- Fatal error: Allowed memory size of 8388608 bytes exhausted