diff options
author | Elan Ruusamäe <glen@delfi.ee> | 2009-09-04 23:15:55 +0200 |
---|---|---|
committer | Elan Ruusamäe <glen@delfi.ee> | 2009-09-04 23:15:55 +0200 |
commit | 50b78159167ceda0f0364d946fc95ac09b091e30 (patch) | |
tree | cfe1e5ceabb0a1db0d989161a460f9c7d3f2a4e6 /bin/dwpage.php | |
parent | 7ba342d55245962d127346c1b78f5885e8f567e7 (diff) | |
download | rpg-50b78159167ceda0f0364d946fc95ac09b091e30.tar.gz rpg-50b78159167ceda0f0364d946fc95ac09b091e30.tar.bz2 |
set memory limit and unify php call in CLI apps
Ignore-this: 1132d10ee32a2a68ddc1929c428e708
- short open tag shouldn't be needed anymore
- CLI memory limits a too low usually
darcs-hash:20090904211555-99ed5-bd19873bdc2b10c61b9365f9c5ad9409a4131e41.gz
Diffstat (limited to 'bin/dwpage.php')
-rwxr-xr-x | bin/dwpage.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dwpage.php b/bin/dwpage.php index f27a67c4c..f664770bf 100755 --- a/bin/dwpage.php +++ b/bin/dwpage.php @@ -1,8 +1,9 @@ -#!/usr/bin/php -d short_open_tag=on +#!/usr/bin/php <?php #------------------------------------------------------------------------------ if ('cli' != php_sapi_name()) die(); +ini_set('memory_limit','128M'); if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); require_once DOKU_INC.'inc/init.php'; require_once DOKU_INC.'inc/common.php'; |