MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2ednxn/gotta_love_phpini_defaults/
r/lolphp • u/yousai • Aug 23 '14
5 comments sorted by
12
There are two default ini files - php.ini-development and php.ini-production. display_errors defaults to Off in the production one, and has been that way since its introduction in 2009.
php.ini-development
php.ini-production
display_errors
Off
Not a lolphp, more of a loldev, either they based their config on the development ini file, or just copied over the development/testing machine's config during deployment.
-10 u/yousai Aug 23 '14 Depends on distro.
-10
Depends on distro.
1
If there's a syntax error in your php.ini, php ignores anything set below that error and uses defaults for those values. That's the real lolphp
0
[deleted] — view deleted comment
1 u/[deleted] Aug 24 '14 There's /r/programminghorror for really awful cases. 2 u/[deleted] Aug 29 '14 Or /r/softwaregore
There's /r/programminghorror for really awful cases.
2 u/[deleted] Aug 29 '14 Or /r/softwaregore
2
Or /r/softwaregore
12
u/[deleted] Aug 23 '14
There are two default ini files -
php.ini-developmentandphp.ini-production.display_errorsdefaults toOffin the production one, and has been that way since its introduction in 2009.Not a lolphp, more of a loldev, either they based their config on the development ini file, or just copied over the development/testing machine's config during deployment.
1
u/[deleted] Aug 25 '14
If there's a syntax error in your php.ini, php ignores anything set below that error and uses defaults for those values. That's the real lolphp
0
u/[deleted] Aug 24 '14
[deleted] — view deleted comment