php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #27071 disable_* directives and PHP_INI_SYSTEM (but only php.ini)
Submitted: 2004-01-28 06:39 UTC Modified: 2004-05-21 15:56 UTC
From: phpbug at humbapa dot ch Assigned: jmcastagnetto (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phpbug at humbapa dot ch
New email:
PHP Version: OS:

 

 [2004-01-28 06:39 UTC] phpbug at humbapa dot ch
Description:
------------
http://www.php.net/manual/en/function.ini-set.php says that
open_basedir is changeable in PHP_INI_SYSTEM (Entry can be set in php.ini or httpd.conf)

I set this up in httpd.conf:
<VirtualHost *:80>
      ...skip...
      <Directory "/somedir">
            ...skip...
            php_admin_value open_basedir "/somedir:/tmp"
      </Directory>
</VirtualHost>
this works perfect for me

when I try to setup disable_functions (also PHP_INI_SYSTEM) the same way, it does not work

I think one of them should have a note about that in:
http://www.php.net/manual/en/function.ini-set.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-28 10:36 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Note: disable_functions and disable_classes can only be changed in php.ini file.
 [2004-01-28 13:37 UTC] philip@php.net
These two disable_ directives are documented in the safe-mode docs (seen here):
http://www.php.net/manual/en/features.safe-mode.php

It's still listed as PHP_INI_SYSTEM but both include a note that only php.ini applies.  The ini_set() docs are autogenerated (in theory) so any changes will at somepoint disappear.  So I'm reopening this report and assigning to jmcastagnetto as he's working on the new intelligent ini_set() doc generation system (tm).

 [2004-05-21 15:56 UTC] nlopess@php.net
This is already fixed in my program and in the docs.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=8140db8b69d7d791396bf3672194891582ebd50c
Log: fix #27071 and added disable_classes
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 09:01:31 2025 UTC