php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24347 disable_functions don't work in vhost
Submitted: 2003-06-26 11:41 UTC Modified: 2003-06-26 12:16 UTC
From: picklezz at hotmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.2 OS: FreeBSD 4.8
Private report: No CVE-ID: None
 [2003-06-26 11:41 UTC] picklezz at hotmail dot com
Description:
------------
<VirtualHost *>
    DocumentRoot /www/www.example.net
    ServerName www.example.net
    ServerAlias example.net www.example.net
    php_admin_value open_basedir /www/www.example.net
    ErrorLog /www/log/www.example.net-error_log
    CustomLog /www/log/www.example.net-access_log common
    CustomLog /www/log/www.example.net-combined.log combined
    php_admin_value disable_functions mysql_pconnect
</VirtualHost>

This doesn't disable mysql_pconnect(), but if I put disable_functions = mysql_pconnect in php.ini it works...



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-26 11:44 UTC] sniper@php.net
RTFM, it's not even supposed to work.

 [2003-06-26 11:47 UTC] picklezz at hotmail dot com
Well look at the ini_set page and you see that it is supposed to work.
 [2003-06-26 11:52 UTC] sniper@php.net
Another documentation problem, disable_functions is a bit special..

 [2003-06-26 12:05 UTC] philip@php.net
It's documented here:
http://www.php.net/manual/en/features.safe-mode.php#ini.disable-functions

The ini_set table is autogenerated and this is indeed PHP_INI_SYSTEM.  There is another bug report on adding a description column and such to that table, and one to even move that table out of ini_set docs (as it doesn't belong there).

Will leave this open until the move is complete, and a note is added to the new docs on this special case (along with disable_classes).  Assigning to jmcastignatto.
 [2003-06-26 12:16 UTC] philip@php.net
As it turns out, this is a duplicate of bug #11598

http://bugs.php.net/11598
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 20:01:30 2024 UTC