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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ars at ziplink dot net
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 12:03:34 2021 UTC