The behaviour of these functions is affected by settings in php.ini.
For further details and definitions of the PHP_INI_* modes, see the Where a configuration setting may be set.