Home > Archive > PHP Documentation > May 2004 > Re: [PHP-DOC] update ini-set.xml
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PHP-DOC] update ini-set.xml
|
|
| Gabor Hojtsy 2004-05-19, 4:30 pm |
| Hi Nuno,
It would be nice, if you could integrate this / look into
scripts/genPHP_INI_ENTRY.php, which is supposed to be there to generate
the ini option list.
Goba
Nuno Lopes írta:
> Hello,
>
> In last days, I've made a tool to update the ini-set.xml file. Full source
> code at: http://testes.aborla.net/ini-update.php
>
> It searches for the ini settings in the php-src folder (and searches also
> for C macros) and updates automaticaly the file (even if the content of it
> has been changed).
>
> It has an array, that I think isn't complete, with the functions which
> permissions are '&php.ini; only'.
> Are there any missing functions?
> disable_functions
> disable_classes
> safe_mode
> expose_php
> ....?
>
> Some ini confs have the permissions 'PHP_INI_PERDIR|PHP_INI_SYSTEM'. Isn't
> this equal to 'PHP_INI_PERDIR'?
> If not, this should be explained in this file. If yes, I could change this
> automatically.
>
>
> What do you think about this program? Can I update the ini-set.xml file? Do
> you want me to commit this program to phpdoc/scripts folder?
> Wasn't there other program to do this?... Where is it? Maybe we could merge
> the two programs to improve the performance.
>
>
> Nuno
>
| |
| Philip Olson 2004-05-19, 6:30 pm |
| Hello Nuno!
Very nice that you have chosen to tackle this problem, here=20
are some related bug reports:
http://bugs.php.net/bug.php?id=3D18403
http://bugs.php.net/bug.php?id=3D21157
Also be sure to read the following thread as it's chalked=20
full of information on this topic and will no doubt
complicate matters for your script:
http://marc.theaimsgroup.com/?l=3Dp...105161194723229
Lastly, I believe there are only three php.ini only=20
directives and that safe_mode is in fact PHP_INI_SYSTEM
but I could be wrong. Also, I too cannot see why=20
"PHP_INI_PERDIR|PHP_INI_SYSTEM" would need to exist.
Regards,
Philip
On Wed, 19 May 2004, Gabor Hojtsy wrote:
> Hi Nuno,
>=20
> It would be nice, if you could integrate this / look into=20
> scripts/genPHP_INI_ENTRY.php, which is supposed to be there to generate=
=20
> the ini option list.
>=20
> Goba
>=20
> Nuno Lopes =EDrta:
rce[color=darkred]
so[color=darkred]
it[color=darkred]
n't[color=darkred]
his[color=darkred]
? Do[color=darkred]
erge[color=darkred]
>=20
| |
| Jesus M. Castagnetto 2004-05-19, 9:30 pm |
| Also, see whether we can separate some of the ini
entries and put then in ini.xml files on the
appropriate modules.
Glad someone has the time to finish this :-)
--- Philip Olson <philip@cornado.com> wrote:
> Hello Nuno!
>
> Very nice that you have chosen to tackle this
> problem, here
> are some related bug reports:
>
> http://bugs.php.net/bug.php?id=18403
> http://bugs.php.net/bug.php?id=21157
>
> Also be sure to read the following thread as it's
> chalked
> full of information on this topic and will no doubt
> complicate matters for your script:
>
>
>
http://marc.theaimsgroup.com/?l=php...105161194723229[color=darkred]
>
> Lastly, I believe there are only three php.ini only
> directives and that safe_mode is in fact
> PHP_INI_SYSTEM
> but I could be wrong. Also, I too cannot see why
> "PHP_INI_PERDIR|PHP_INI_SYSTEM" would need to exist.
>
> Regards,
> Philip
>
>
> On Wed, 19 May 2004, Gabor Hojtsy wrote:
>
> look into
> be there to generate
> ini-set.xml file. Full source
> folder (and searches also
> (even if the content of it
> with the functions which
> 'PHP_INI_PERDIR|PHP_INI_SYSTEM'. Isn't
> If yes, I could change this
> update the ini-set.xml file? Do
> phpdoc/scripts folder?
> is it? Maybe we could merge
=====
--- Jesus M. Castagnetto <jmcastagnetto@php.net>
__________________________________
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
| |
| Derick Rethans 2004-05-20, 7:30 am |
| On Wed, 19 May 2004, Philip Olson wrote:
> Lastly, I believe there are only three php.ini only
> directives and that safe_mode is in fact PHP_INI_SYSTEM
> but I could be wrong. Also, I too cannot see why
> "PHP_INI_PERDIR|PHP_INI_SYSTEM" would need to exist.
You're wrong. PHP_INI_PERDIR and PHP_INI_SYSTEM at the same time does
make sense. And safe_mode has nothing to do with PHP_INI_SYSTEM
whatsoever.
Derick
| |
| Philip Olson 2004-05-20, 11:32 am |
| On Thu, 20 May 2004, Derick Rethans wrote:
> On Wed, 19 May 2004, Philip Olson wrote:
>
>
> You're wrong. PHP_INI_PERDIR and PHP_INI_SYSTEM at the same time does
> make sense. And safe_mode has nothing to do with PHP_INI_SYSTEM
> whatsoever.
Please explain your words a little better for the documentation
team as we non-phpdev folk need specifics. Why do you feel
PHP_INI_PERDIR doesn't imply PHP_INI_SYSTEM as our definitions
are:
PHP_INI_PERDIR : Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM : Entry can be set in php.ini or httpd.conf
If something is the first, it implies the second, right? Rather
than just say "no" how about you explain your reasoning a little.
Also are you saying safe_mode cannot be set in httpd.conf and can
you answer Nuno's questions then? According to main.c it is
PHP_INI_SYSTEM, is the source wrong? Because this is what the
ini docs generating script will use:
#if PHP_SAFE_MODE
STD_PHP_INI_BOOLEAN("safe_mode", "1", PHP_INI_SYSTEM, OnUpdateBool,
safe_mode, php_core_globals, core_globals)
#else
STD_PHP_INI_BOOLEAN("safe_mode", "0", PHP_INI_SYSTEM, OnUpdateBool,
safe_mode, php_core_globals, core_globals)
#endif
Regards,
Philip
| |
| Nuno Lopes 2004-05-20, 3:30 pm |
| >Hello Nuno!
>Very nice that you have chosen to tackle this problem, here
>are some related bug reports:
I've read them. Thanks!
>Lastly, I believe there are only three php.ini only
>directives and that safe_mode is in fact PHP_INI_SYSTEM
>but I could be wrong. Also, I too cannot see why
>"PHP_INI_PERDIR|PHP_INI_SYSTEM" would need to exist.
I agree with you. So I change this to PHP_INI_PERDIR automatically.
[color=darkred]
>On Wed, 19 May 2004, Gabor Hojtsy wrote:
This would be good, but I've take a look into this, and it won't be easy...
My program is a bit more inteligent because it doens't rewrite the all
ini-set.xml file. It searchs for the table and replaces only the table, thus
leaving the content untouched.
AFAIR The gen_PHP_INI_ENTRY.php also modifies the en/reference/*/ini.xml
files and mine doesn't do this.
It's just more homework for me :) My vacations are almost coming, so...
Later I'll try to merge the best of the two programs.
Nuno
| |
| Derick Rethans 2004-05-20, 3:30 pm |
| On Thu, 20 May 2004, Nuno Lopes wrote:
>
>
> I've read them. Thanks!
>
>
>
> I agree with you. So I change this to PHP_INI_PERDIR automatically.
Don't do that, it's wrong.
regards,
Derick
| |
| Nuno Lopes 2004-05-20, 7:30 pm |
| > > >Lastly, I believe there are only three php.ini only
>
> Don't do that, it's wrong.
>
> regards,
> Derick
Hi Derick,
First, Thanks for removing those bogus ini settings!
Why is INI_PERDIR diferent from PHP_INI_PERDIR|PHP_INI_SYSTEM?
Following Philip's idea, the manual states:
PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf
So PHP_INI_PERDIR|PHP_INI_SYSTEM would have the value 6. If INI_PERDIR can
be set in "php.ini, .htaccess or httpd.conf", where else can you set those
ini options with permissions 6? Can you explain us, please?
Thanks,
Nuno
|
|
|
|
|