Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16306

Re: .configure memory_limit building from source

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: .configure memory_limit building from source
Date 2016-01-18 13:33 +0100
Message-ID <569CDBAE.2010406@arnowelzel.de> (permalink)
References <n7h682$ir8$1@dont-email.me> <slrnn9ooj7.us5.hellsop@nibelheim.ninehells.com> <n7iblc$s9s$1@dont-email.me>

Show all headers | View raw


crankypuss schrieb am 2016-01-18 um 10:38:

> Peter H. Coffin wrote:
> 
>> On Sun, 17 Jan 2016 15:59:44 -0700, crankypuss wrote:
>>> It appears that the default memory_limit value is 128M which is way
>>> too
>>> small for my purposes.  How can I configure this to a larger value? 
>>> I'm currently using:
>>>
>>> memory_limit=-1
>> .       ^^^^^^^^^^^^^^^
>>
>> goes in your php.ini, not configure.
> 
> Yes, so how do I do it from configure?  I do not want to *HAVE* any 
> php.ini files for this build, it needs to be fully self-contained.

This is not possible.

If you need this, you have check the source code of PHP where the
default memory limit is set and modify this.

> The configure help says "To assign environment variables (e.g., CC, 
> CFLAGS...), specify them as VAR=VALUE.  See below for descriptions of 
> some of the useful variables."  Apparently memory_limit is not one of 
> those.

Yes - because this notice about setting *environment* variables applies
to the C compiler and not to PHP.

> If nobody knows, or there is no way to do it, I'll need to modify the 
> source, so I would appreciate clues in order to avoid that.

You can't avoid that. PHP is not designed to be completely self
contained without any configuration at all.


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

.configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-17 15:59 -0700
  Re: .configure memory_limit building from source "Peter H. Coffin" <hellsop@ninehells.com> - 2016-01-17 21:56 -0600
    Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-18 02:38 -0700
      Re: .configure memory_limit building from source "J.O. Aho" <user@example.net> - 2016-01-18 13:08 +0100
        Re: .configure memory_limit building from source Michael Vilain <vilain@NOspamcop.net> - 2016-01-18 17:48 -0800
          Re: .configure memory_limit building from source "J.O. Aho" <user@example.net> - 2016-01-19 06:56 +0100
            Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-19 02:37 -0700
      Re: .configure memory_limit building from source Arno Welzel <usenet@arnowelzel.de> - 2016-01-18 13:33 +0100
        Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-19 02:39 -0700
          Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-19 03:54 -0700
            Re: .configure memory_limit building from source Arno Welzel <usenet@arnowelzel.de> - 2016-01-19 18:27 +0100
              Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-19 14:38 -0700
                Re: .configure memory_limit building from source Arno Welzel <usenet@arnowelzel.de> - 2016-01-20 06:11 +0100
          Re: .configure memory_limit building from source Arno Welzel <usenet@arnowelzel.de> - 2016-01-19 18:22 +0100
            Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-19 15:25 -0700
              Re: .configure memory_limit building from source Arno Welzel <usenet@arnowelzel.de> - 2016-01-20 06:20 +0100
                Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-20 03:02 -0700
                Re: .configure memory_limit building from source Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-21 01:43 +0100
  Re: .configure memory_limit building from source Arno Welzel <usenet@arnowelzel.de> - 2016-01-18 09:07 +0100
    Re: .configure memory_limit building from source crankypuss <invalid@invalid.invalid> - 2016-01-18 02:39 -0700
      Re: .configure memory_limit building from source Matthew Carter <m@ahungry.com> - 2016-01-18 21:21 -0500

csiph-web