summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@delfi.ee>2009-09-04 23:15:55 +0200
committerElan Ruusamäe <glen@delfi.ee>2009-09-04 23:15:55 +0200
commit50b78159167ceda0f0364d946fc95ac09b091e30 (patch)
treecfe1e5ceabb0a1db0d989161a460f9c7d3f2a4e6 /bin
parent7ba342d55245962d127346c1b78f5885e8f567e7 (diff)
downloadrpg-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')
-rwxr-xr-xbin/dwpage.php3
-rwxr-xr-xbin/indexer.php1
-rwxr-xr-xbin/wantedpages.php2
3 files changed, 4 insertions, 2 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';
diff --git a/bin/indexer.php b/bin/indexer.php
index 77ff5ef85..55f3608d5 100755
--- a/bin/indexer.php
+++ b/bin/indexer.php
@@ -2,6 +2,7 @@
<?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');
diff --git a/bin/wantedpages.php b/bin/wantedpages.php
index aa0e1818d..c8b7153b2 100755
--- a/bin/wantedpages.php
+++ b/bin/wantedpages.php
@@ -1,4 +1,4 @@
-#!/usr/bin/php -d short_open_tag=on
+#!/usr/bin/php
<?php
if ('cli' != php_sapi_name()) die();