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
 [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

Pull Requests

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: Tue Dec 10 02:01:26 2024 UTC