|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-07 21:25 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
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)