[pLog-svn] r2067 - plog/branches/plog-1.0.1

Jon Daley plogworld at daley.snurgle.org
Tue May 24 12:09:03 GMT 2005


 	This isn't a good fix is it?  Then the users who aren't allowed to 
call this function, due to safe_mode, etc. will get errors, no?  Maybe if 
it was called as @ini_set instead?  I can't test it, but I think there 
have been users on the forums who have gotten error messages when they 
have tried to do this.

On Tue, 24 May 2005 francesc at devel.plogworld.net wrote:

> Author: francesc
> Date: 2005-05-24 10:29:50 +0000 (Tue, 24 May 2005)
> New Revision: 2067
>
> Modified:
>   plog/branches/plog-1.0.1/admin.php
>   plog/branches/plog-1.0.1/index.php
> Log:
> Quick'n'dirty fix to Smarty memory problems, it still has to be fixed properly but at least is better than nothing.
>
> Modified: plog/branches/plog-1.0.1/admin.php
> ===================================================================
> --- plog/branches/plog-1.0.1/admin.php	2005-05-23 20:32:24 UTC (rev 2066)
> +++ plog/branches/plog-1.0.1/admin.php	2005-05-24 10:29:50 UTC (rev 2067)
> @@ -1,10 +1,12 @@
> <?php
> +    ini_set('memory_limit', "24M");
> +
>     if (!defined( "PLOG_CLASS_PATH" )) {
>         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
>     }
>
>     include_once( PLOG_CLASS_PATH."class/controller/admincontroller.class.php" );
> -	include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
> +    include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
>     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
>     include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
>     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
> @@ -21,8 +23,8 @@
>         die();
>     }
>
> -	// initialize the session
> -	SessionManager::init();
> +    // initialize the session
> +    SessionManager::init();
>
>     $controller = new AdminController();
>
>
> Modified: plog/branches/plog-1.0.1/index.php
> ===================================================================
> --- plog/branches/plog-1.0.1/index.php	2005-05-23 20:32:24 UTC (rev 2066)
> +++ plog/branches/plog-1.0.1/index.php	2005-05-24 10:29:50 UTC (rev 2067)
> @@ -2,12 +2,14 @@
>
> //xdebug_start_profiling();
>
> +    ini_set('memory_limit', "24M");
> +
>     if (!defined( "PLOG_CLASS_PATH" )) {
>         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
>     }
>
>     include_once( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" );
> -	include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
> +    include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
>     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
>     include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
>     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
> @@ -25,10 +27,10 @@
>                Please remove it first to continue.");
>         die();
>     }
> -
> -	// initialize the session
> -	SessionManager::init();
>
> +    // initialize the session
> +    SessionManager::init();
> +
>     $controller = new BlogController();
>
>     // load the plugins, this needs to be done *before* we call the
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>

**************************************************************
*     Jonathan M. Daley     *  If you don't know the truth,  *
*   jondaley at snurgle.org    *   you will believe anything.   *
* www.snurgle.org/~jondaley *                -- Eric Simmons *
**************************************************************



More information about the pLog-svn mailing list