classes/phing/Phing.php
private static function setIni()
    {
        self::$origIniSettings['error_reporting'] = error_reporting(E_ALL);

        // We won't bother storing original max_execution_time, since 1) the value in
        // php.ini may be wrong (and there's no way to get the current value) and
        // 2) it would mean something very strange to set it to a value less than time script
        // has already been running, which would be the likely change.

        set_time_limit(0);

        self::$origIniSettings['short_open_tag'] = ini_set('short_open_tag', 'off');
        self::$origIniSettings['default_charset'] = ini_set('default_charset', 'iso-8859-1');
        self::$origIniSettings['track_errors'] = ini_set('track_errors', 1);

        $mem_limit = (int) self::convertShorthand(ini_get('memory_limit'));
        if ($mem_limit < (32 * 1024 * 1024) && $mem_limit > -1) {
            // We do *not* need to save the original value here, since we don't plan to restore
            // this after shutdown (we don't trust the effectiveness of PHP's garbage collection).
            ini_set('memory_limit', '32M'); // nore: this may need to be higher for many projects
        }
    }
private static function setIni()
    {
        self::$origIniSettings['error_reporting'] = error_reporting(E_ALL);

        // We won't bother storing original max_execution_time, since 1) the value in
        // php.ini may be wrong (and there's no way to get the current value) and
        // 2) it would mean something very strange to set it to a value less than time script
        // has already been running, which would be the likely change.

        set_time_limit(0);

        self::$origIniSettings['short_open_tag'] = ini_set('short_open_tag', 'off');
        self::$origIniSettings['default_charset'] = ini_set('default_charset', 'iso-8859-1');
        self::$origIniSettings['track_errors'] = ini_set('track_errors', 1);

        $mem_limit = (int) self::convertShorthand(ini_get('memory_limit'));
        if ($mem_limit < (32 * 1024 * 1024) && $mem_limit > -1) {
            // We do *not* need to save the original value here, since we don't plan to restore
            // this after shutdown (we don't trust the effectiveness of PHP's garbage collection).
            ini_set('memory_limit', '32M'); // nore: this may need to be higher for many projects
        }
    }
private static function setIni ( ) { self :: $ origIniSettings [ 'error_reporting' ] = error_reporting ( E_ALL ) ; // We won't bother storing original max_execution_time, since 1) the value in // php.ini may be wrong (and there's no way to get the current value) and // 2) it would mean something very strange to set it to a value less than time script // has already been running, which would be the likely change. set_time_limit ( 0 ) ; self :: $ origIniSettings [ 'short_open_tag' ] = ini_set ( 'short_open_tag' , 'off' ) ; self :: $ origIniSettings [ 'default_charset' ] = ini_set ( 'default_charset' , 'iso-8859-1' ) ; self :: $ origIniSettings [ 'track_errors' ] = ini_set ( 'track_errors' , 1 ) ; $ mem_limit = ( int ) self :: convertShorthand ( ini_get ( 'memory_limit' ) ) ; if ( $ mem_limit < ( 32 * 1024 * 1024 ) && $ mem_limit > - 1 ) { // We do *not* need to save the original value here, since we don't plan to restore // this after shutdown (we don't trust the effectiveness of PHP's garbage collection). ini_set ( 'memory_limit' , '32M' ) ; // nore: this may need to be higher for many projects } }
Sets PHP INI values that Phing needs.

@return void
Sets PHP INI values that Phing needs .