Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: .configure memory_limit building from source Date: Mon, 18 Jan 2016 13:33:50 +0100 Lines: 43 Message-ID: <569CDBAE.2010406@arnowelzel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: individual.net NnJ3/gZh9/cr4DeuBb2jvQ7CYmA052zUxayg3pt7iJl1qz3qXa Cancel-Lock: sha1:gX/648iezUzLGUueZ5CbkIg1ObY= In-Reply-To: Xref: csiph.com comp.lang.php:16306 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