Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 152967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:43:03+00:00 2026-05-11T09:43:03+00:00

In PHP 5.0.4, if you don’t configure -enable-memory-limit, the memory_limit directive is ignored. (It’s

  • 0

In PHP 5.0.4, if you don’t configure -enable-memory-limit, the memory_limit directive is ignored. (It’s set to 8M in the recommended php.ini file, but the documentation says it’s ignored.) So in that case, is there a per-script memory limit at all, or is it only limited by the system?

I ask because I’m upgrading to PHP 5.2.8, and it does allow memory limiting by default. So now I actually have to set the value to something appropriate. The recommended php.ini file now has it set to 128M, but I don’t know if that’s more or less than what 5.0.4 did by default!

I’m upgrading production systems, so I’d like to avoid any major change in behavior. The documentation (search for "memory_limit") is very confusing on this point. It says "default", but I don’t know if that means the default value set in the config file, or the default value that it uses when memory limiting is disabled.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:43:04+00:00Added an answer on May 11, 2026 at 9:43 am

    The memory limiter in PHP is optional; if you disable it at compile time there’s no limit at all.

    In 5.0.4 it’s disabled unless you explicitly asked for it at compile time, the reason being that the memory limiter was useless until 5.2 and didn’t count a lot of things it should have done, including things like the mysql functions. It’s turned on from 5.2.1 now that they learned to count.

    If in doubt, disable it or make sure you update the config file to use the new default. Leaving it at 8MB and upgrading to 5.2.8 will almost definitely cause problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 101k
  • Answers 101k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use a different color space: http://en.wikipedia.org/wiki/HSL_color_space May 11, 2026 at 8:01 pm
  • Editorial Team
    Editorial Team added an answer Here's a style guide I rather like, Ruby-focused but definitely… May 11, 2026 at 8:01 pm
  • Editorial Team
    Editorial Team added an answer I don't think there is a pre-defined format for this… May 11, 2026 at 8:01 pm

Related Questions

In PHP 5.0.4, if you don't configure -enable-memory-limit, the memory_limit directive is ignored. (It's
I want to add an int into an array, but the problem is that
I've used JQuery to make the elements in a table draggable. (I've never used
I'm trying to write someting into the DB using PHP but if I try
In FireFox3 when I go to URL's such as: http://download.microsoft.com/download/4/A/A/4AA524C6-239D-47FF-860B-5B397199CBF8/windows-kb890830-v2.7.exe I get a 404

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.