|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-15 12:23 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 10:00:01 2025 UTC |
Hello. I'm doing an extension module for PHP. I've tried to use API functions to access INI file strings and found a bug (?) when default value overrides the value present in php.ini. More specifially, I declared PHP_INI_ENTRY("test.string", NULL, PHP_INI_ALL, NULL) and written PHP_FUNCTION(show_ini_value) { char *ini; int len; ini = INI_STR("test.string"); if (ini) { RETURN_STRINGL(ini, 1); } else { RETURN_STRINGL("(default), 1); } } Everything other is exactly the default code in sample skeleton. Now, I did phpize ./configure make to build test.so, installed it and restarted Apache. For the first time, <?=show_ini_value()?> produced the string from php.ini. For the second time and the following tries it replied with "(default)". Am I doing something wrong or is this a bug in PHP? Please reply either to my e-mail or to php-dev list. Thanks.