Sorry for bad English. According to
http://ru.php.net/manual/en/info.configuration.php we can't set all php
settings (not talking about PHP 6), maybe better would to avoid user from
trying to set some php settings during runtime? for example

Application.php


    public function setPhpSettings(array $settings, $prefix = '')
    {
        foreach ($settings as $key => $value) {
                $key = empty($prefix) ? $key : $prefix . $key;
                if (is_scalar($value)) {
                        if($key == 'magic_quotes_gpc' || $key ==
'register_globals' )
                        {
                                throw new Zend_Exception('key "' . $key . '"
cannot be set through bootstrap file, check php documentation' );
                        }
                    ini_set($key, $value);
            } elseif (is_array($value)) {
                $this->setPhpSettings($value, $key . '.');
            }
        }

        return $this;
    }

-- 
View this message in context: 
http://www.nabble.com/proposal-to-Application.php-tp25490894p25490894.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to