Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26750 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21653 invoked by uid 1010); 1 Dec 2006 18:12:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21638 invoked from network); 1 Dec 2006 18:12:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2006 18:12:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:61024] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/CD-38848-A6070754 for ; Fri, 01 Dec 2006 13:12:31 -0500 Received: (qmail 20837 invoked from network); 1 Dec 2006 18:10:24 -0000 Received: from office.zend.office (HELO ?127.0.0.1?) (192.168.16.109) by internal.zend.office with SMTP; 1 Dec 2006 18:10:24 -0000 Message-ID: <45707064.7010600@zend.com> Date: Fri, 01 Dec 2006 10:11:48 -0800 Organization: Zend Technologies User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Bruce Bailey CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Temporarily overriding memory limit in extension From: stas@zend.com (Stanislav Malyshev) > Hi > > Some of my PHP scripts use a large volume of memory. Is there a way I can: > > 1) Increase the script memory limit, and > 2) Force a garbage collect at script end (and reset the limit). From PHP, I guess you could do ini_set("memory_limit"), unless you are running in safe mode. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/