php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40422 script breaks memory limit
Submitted: 2007-02-09 23:16 UTC Modified: 2007-02-10 08:38 UTC
From: mb at nasa30 dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.1 OS: Windows 2003 server standart
Private report: No CVE-ID: None
 [2007-02-09 23:16 UTC] mb at nasa30 dot com
Description:
------------
My simple benchmark script breaks the memory limit what it did never
before. I tested it on my w2k3 server. I normaly use 8 MB as memory
limit. which is enough for my apps. But Now the script end in a fatal
error even when I set it up to 64 MB. 

Reproduce code:
---------------
http://www.source-center.de/forum/showthread.php?t=27651

Expected result:
----------------
Finish: 1171062920 Result: 10 sekunden

Actual result:
--------------
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 256 bytes) in C:\server2\www\benchmark.php on line 115

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-09 23:19 UTC] mb at nasa30 dot com
I use Apache 2.2.4
 [2007-02-09 23:20 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2007-02-09 23:21 UTC] tony2001@php.net
Memory limit was not enabled on Win32 before.
 [2007-02-10 08:39 UTC] mb at nasa30 dot com
With PHP 5.2.0 it worked! There was no error caused by the memory limit. There is something changed from 5.2.0 to 5.2.1
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 07:00:02 2025 UTC