php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21157 when ini settings are changable needs to be further documented
Submitted: 2002-12-22 23:12 UTC Modified: 2004-07-27 14:58 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: petar at escape dot net dot au Assigned: jmcastagnetto (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.4.0-dev OS: windows
Private report: No CVE-ID: None
 [2002-12-22 23:12 UTC] petar at escape dot net dot au
When making use of the 'registry per directory' option to set per directory php.ini entries it would appear that only selected options from php.ini are parsed in this registry section. For example error_log and sendmail_from entries are parsed but safe_mode, user_dir, expose_php, smtp, doc_root are ignored when here.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-23 10:34 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Options such as safe_mode, expose_php, etc.. can only be set via PHP.ini and are NOT 'per directory'.
 [2002-12-23 10:41 UTC] petar at escape dot net dot au
Thanks for the comments but I lodged the report *after* reading anything relevant in the docs I could find. I could find nothing about the 'registry per directory' win32 registry functionality but it exists. Where would I find info explaining which php.ini options are accepted for this function? I would be happy to accept any specific pointers to relevant docs from more knowledgable people than myself.
 [2002-12-23 10:43 UTC] iliaa@php.net
http://www.php.net/manual/en/function.ini-set.php

Contains a comprehensive list of ini settings and it tells you whether a particular ini setting can be set per directory or not.
 [2002-12-23 10:54 UTC] philip@php.net
Assuming that 'registry per directory' is an option similar to .htaccess for IIS, it's worth mentioning that for example safe_mode is listed as PHP_INI_SYSTEM so it can be set in httpd.conf or php.ini but not .htaccess (or whatever IIS uses).

You will notice at php.net/ini_set that some options are PHP_INI_SYSTEM|PHP_INI_PERDIR and some are PHP_INI_ALL, those can be set per directory.  

This 'when changable' information should be mentioned within every configuration description in the manual as opposed to only in the ini_set() docs.  Or at least pointed somewhere.

That said, am marking this as a documentation problem.  Also note that equivelents for apache's httpd.conf and .htaccess should be mentioned somewhere too, not sure where (yet).
 [2002-12-23 10:55 UTC] petar at escape dot net dot au
Thank you for the pointer.
 [2002-12-23 11:02 UTC] philip@php.net
Reclassified again :)
 [2003-06-26 12:13 UTC] philip@php.net
Assigned to jmcastagnetto as this is generated by genPHP_INI_ENTRY.php
 [2004-07-27 14:58 UTC] vrana@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Changeability of directives is described also in ini sections nowadays.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 08:01:27 2024 UTC