Menu

#25 safe_mode and locales

open
nobody
None
5
2005-10-21
2005-10-21
Anonymous
No

Why SM does not try to use locales while php in
safe_mode?
I commented the safe_mode check and all works fine.
Of course I allowed setting LC_* LANG variables via
php.ini.
Should't You check if the var can be changed instead
checking for safe_mode only?

Discussion

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-10-24

    Logged In: YES
    user_id=225877

    Todo: write some parser that handles
    safe_mode_allowed_env_vars and safe_mode_protected_env_vars.
    Whole variables and wildcard matches.

     
  • Rafal Wijata

    Rafal Wijata - 2005-10-27

    Logged In: YES
    user_id=996150

    Why not just do putenv(and hide the safe_mode warnings)?
    If it fails - nothing bad will happen? Or i'm wrong?

     

Log in to post a comment.