php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40446 php.exe fails to start
Submitted: 2007-02-12 11:45 UTC Modified: 2007-02-13 09:06 UTC
From: a at b dot c dot de Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.1 OS: Windows XP SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: a at b dot c dot de
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-12 11:46 UTC] a at b dot c dot de
(I said "edit"). Earlier upgrades included 5.1.6->5.2.0.
 [2007-02-12 11:56 UTC] tony2001@php.net
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.
 [2007-02-13 00:15 UTC] a at b dot c dot de
Close; the line in php.ini actually read

memory_limit = 128MB      ; Maximum amount of memory a script may consume (8MB)
 [2007-02-13 00:16 UTC] a at b dot c dot de
So 5.2.0 doesn't mind the 'B', but 5.2.1 does.
 [2007-02-13 09:06 UTC] tony2001@php.net
Memory limit was not enabled before 5.2.1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 02:01:27 2024 UTC