|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-12 11:45 UTC] a at b dot c dot de
Description: ------------ PHP 5.2.1 (manually downloaded, extracted and copied to working directory) fails to start either as a CLI or as an Apache module; Apache fails to start also (though this may be a side-effect of something else). Installation was through exactly the same installation process as earlier upgrades (e.g., 5.0.x => 5.1). php.ini is being parsed (one early attempt at the below reminded me to turn off a third-party extension with its "Failed Loading" message). Downgrading to 5.2.0 (through the same installation process) works successfully. Installing 5.2.1 side-by-side with 5.2.0 in another directory has the same result as below. Reproduce code: --------------- From the command line: c:\> php -v Expected result: ---------------- PHP 5.2.1 (cli) (built: Feb 7 2007 23:19:16) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies Actual result: -------------- Fatal error: Allowed memory size of 128 bytes exhausted (tried to allocate 8192 bytes) in Unknown on line 0 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 16:00:01 2025 UTC |
Open your php.ini, find the line looking like this: memory_limit = 128 and change it to this: memory_limit = 128M <-- notice the "M" here. "128" is 128 bytes "128M" is 128 megabytes.