ID: 41317 Updated by: [EMAIL PROTECTED] Reported By: tokul at users dot sourceforge dot net -Status: Assigned +Status: Wont fix Bug Type: PHP options/info functions Operating System: Linux Debian Etch PHP Version: 4CVS-2007-05-07 (snap) Assigned To: derick New Comment:
We can not change this in 4, as this would make PHP 4 in itself inconsistent. Previous Comments: ------------------------------------------------------------------------ [2007-05-07 18:24:39] tokul at users dot sourceforge dot net Description: ------------ In PHP 4.x ini_get function does not return default variables_order value, if it is not set in PHP_INI_ALL locations. Tested PHP version * 5.2.0-8 (stock debian etch) - returns EGPCS * php4-STABLE-200705071630 - returns boolean false * php5.2-200705071630 - returns EGPCS * php6.0-200705071630 - returns EGPCS All snapshots are compiled only with --prefix, --with-config-file-path and --with-apxs2 options. All use empty php.ini file. I recommend returning default value instead of false, if configuration value is not present in configuration file. Or make sure that behavior is consistent between PHP versions and configuration variables. For example, if gpc_order is missing in php.ini, ini_get() still returns 'GPC' in php 4.x. Reproduce code: --------------- var_dump(ini_get('variables_order')); Expected result: ---------------- string(5) "EGPCS" Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41317&edit=1