On 18 July 2011 01:31, Stas Malyshev <smalys...@sugarcrm.com> wrote:
> Hi!
>
> On 7/17/11 3:03 PM, Richard Quadling wrote:
>>
>> Why bother having defaults if you don't use them.
>
> Err, well, the way PHP ini system works you always have defaults - something
> is always stored in the hash.
>
>> My local ini file is 6 lines long. Works perfectly.
>
> And you rely on magic_quotes being on, right? Then you have peculiar
> definition of "working perfectly".

Currently working really only encompasses running PhD on Windows (new
setup for the new home laptop).

But, in essence, the inability to rely on one default setting
inescapably leads to the inability to rely on any of the defaults. So,
the default values are flawed. And therefore relying on them is
flawed. So bugger me.

So, I _HAVE_ to maintain an INI file that, for the most time, will
have the same values as the built-in defaults, but then having to
constantly maintain it for every release of PHP, rather than just
accepting the defaults.

So why bother having defaults at all? Just store NULLS for everything
and force all settings to be made via the ini file. Hmmm. Overkill?.
So set the default values to appropriate safe/secure values. Hmm. Dev
or Production?

It would seem that my relying on the default values is my fundamental
mistake because the defaults cannot be meaningful for all environments
or are counter to the currently perceived best value (magic_quotes is
still enabled by default? JHC - why? PHP5.3.0 is nearly 3 years old
and yet the default value is still to have them enabled? So the
documentation is clearly incorrect. "This feature has been DEPRECATED
as of PHP 5.3.0.". Nope. The feature is alive and well and if you
don't read alter your ini file to go against the current default value
you are leaving yourself wide open).

A big fuss was made on PHP Classes over the recent announcement of the
plan to deprecate ext/myql. One of the issues raised was about shared
hosting. Do shared hosters set the INI files a certain way? Do they
just rename php.ini-production? Do they just leave things as the
default/built-in? Do they care?



-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to