cvs: pear /PhpDocumentor/phpDocumentor Setup.inc.php

From: Date: Thu, 17 Aug 2006 01:59:45 +0000
Subject: cvs: pear /PhpDocumentor/phpDocumentor Setup.inc.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41649@lists.php.net to get a copy of this message
cellog Thu Aug 17 01:59:45 2006 UTC Modified files: /pear/PhpDocumentor/phpDocumentor Setup.inc.php Log: don't set memory limit to 256 if it is already higher than 256 MB http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/phpDocumentor/Setup.inc.php?r1=1.11&r2=1.12&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Setup.inc.php diff -u pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.11 pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.12 --- pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.11 Thu May 25 16:22:13 2006 +++ pear/PhpDocumentor/phpDocumentor/Setup.inc.php Thu Aug 17 01:59:44 2006 @@ -30,7 +30,7 @@ * @author Gregory Beaver <cellog@php.net> * @copyright 2002-2006 Gregory Beaver * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id: Setup.inc.php,v 1.11 2006/05/25 16:22:13 cellog Exp $ + * @version CVS: $Id: Setup.inc.php,v 1.12 2006/08/17 01:59:44 cellog Exp $ * @link http://www.phpdoc.org * @link http://pear.php.net/PhpDocumentor * @since 1.2 @@ -168,7 +168,10 @@ { phpDocumentor_out("time_limit cannot be set since your in safe_mode, please edit time_limit in your php.ini to allow enough time for phpDocumentor to run"); } - ini_set("memory_limit","256M"); + $x = str_replace('M', '', ini_get('memory_limit')); + if ($x < 256) { + ini_set("memory_limit","256M"); + } $phpver = phpversion(); $phpdocver = PHPDOCUMENTOR_VER;

« previous php.pear.cvs (#41649) next »