php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #131 Memory limit, default on or off?
Submitted: 1998-03-02 20:15 UTC Modified: 1998-03-03 00:50 UTC
From: ars at ziplink dot net Assigned: rasmus (profile)
Status: Closed Package: Installation problem
PHP Version: 3.0 Latest CVS OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 27 = ?
Subscribe to this entry?

 
 [1998-03-02 20:15 UTC] ars at ziplink dot net
In configure.in:

AC_MSG_CHECKING(whether to enable a memory limit)
AC_ARG_ENABLE(memory-limit,
[  --enable-memory-limit   Compile with memory limit support. ],
[
  if test "$enableval" = "yes"; then
    AC_DEFINE(MEMORY_LIMIT, 1)
    AC_MSG_RESULT(yes)
  else
    AC_DEFINE(MEMORY_LIMIT, 0)
    AC_MSG_RESULT(no)
  fi
],[
  AC_DEFINE(MEMORY_LIMIT, 1)
  AC_MSG_RESULT(no)
])

In the default action (the last AC_DEFINE) it's being set to
1, but AC_MSG_RESULT is saying "no" it should either say yes,
or be set to 0. Since the text is enable-memory-limit it
seems the intent was for it to be disabled by default?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-03 00:50 UTC] rasmus
memory_limit configure inconsistency fixed - off by default
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC