From:             ali dot hamad at dci dot net dot sa
Operating system: Red Hat Enterprise Linux
PHP version:      5.2.8
PHP Bug Type:     *Configuration Issues
Bug description:  php_admin_value does not work as expected

Description:
------------
1) my disable_functions in php.ini :

disable_functions = php_uname

2) in httpd.conf , inside the vhost for the user, I have :

<Directory "/home/userName/public_html/">

<IfModule mod_php5.c>
    php_admin_value disable_functions "system"
</IfModule>

</Directory>

3) Here is my code :

<?php
echo "disable_functions=".ini_get('disable_functions');
echo "<br>";
echo "php_uname=".php_uname();
echo "<br>";
?>

4) expected result :
disable_functions=system
php_uname= Linux ...etc.

5) Actual result :
disable_functions=system
php_uname=

notice, no output from php_uname and in the php error log :
[04-Feb-2009 06:08:28] PHP Warning:  php_uname() has been disabled for
security reasons in ..etc

I think it is a bug since the ini_get call to disable_functions gave me
what supposed to be disabled, system function. However, php_uname, is still
disabled even if I overwrite disable_functions setting using the
php_admin_value in the user vhost.

Regards,
Ali Hamad.


-- 
Edit bug report at http://bugs.php.net/?id=47296&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47296&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47296&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47296&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47296&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47296&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47296&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47296&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47296&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47296&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47296&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47296&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47296&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47296&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47296&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47296&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47296&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47296&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47296&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47296&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47296&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47296&r=mysqlcfg

Reply via email to