• Previous message: [greg-dev] 0.5.2
  • Next message: [greg-dev] set_time_limit - Safe Mode Restriction
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] set_time_limit - Safe Mode Restriction

    Hi,
    
    sorry for being absent for a few weeks - but after a trip to Lisbon I
    had some stomach flu - happy feeling better now ,-)
    
    I recently updated to the new svn trunk (release 0.5.3 revision# 947).
    
    What I recognized was - when I updated my feeds - that there was a safe
    mode warning - caused by the set_time_limit in the /cls/update.php
    
    I've added a small diff file containing a fix for this part.
    
    set_time_limit(0); --> @set_time_limit(0);
    
    Hope this meets the coding standards ^^
    
    Another point I'd like to add is a new feature - I guess.
    And it's about i18n again - what else ^^
    
    php itself unfortunately does not translate days and months - what about
    translating them - equal to wordpress??
    
    Greets,
    Marcus
    
    
    -- 
    Marcus Kimpenhaus
    
    Polsumer Str. 56
    45896 Gelsenkirchen
    
    +49 (209) 9256075
    marcus at kimpenhaus.de
    -------------- next part --------------
    Index: admin/channels.php
    ===================================================================
    --- admin/channels.php	(revision 946)
    +++ admin/channels.php	(working copy)
    @@ -430,7 +430,7 @@
                 $opmlfid = getRootFolder();
     		}
     
    -        set_time_limit(0);
    +        @set_time_limit(0);
     		@ini_set('max_execution_time', 300);
     		
     		// Parse into and OPML object
    Index: cls/update.php
    ===================================================================
    --- cls/update.php	(revision 946)
    +++ cls/update.php	(working copy)
    @@ -59,7 +59,7 @@
     		$this->populate();
     		
     		// Script timeout: ten seconds per feed should be a good upper limit
    -		set_time_limit(0);
    +		@set_time_limit(0);
     		@ini_set('max_execution_time', (10 * count($this->chans) + 300));
     	}
     
    
    Posted by Marcus Kimpenhaus [reply] at Wed Oct 12 19:45:39 CEST 2005