cvs: Zend(PHP_4_4) / zend_ini.c

From: Date: Wed, 06 Sep 2006 08:53:56 +0000
Subject: cvs: Zend(PHP_4_4) / zend_ini.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5230@lists.php.net to get a copy of this message
dmitry Wed Sep 6 08:53:56 2006 UTC Modified files: (Branch: PHP_4_4) /Zend zend_ini.c Log: Fixed php_admin* bypass by ini_restore() http://cvs.php.net/viewvc.cgi/Zend/zend_ini.c?r1=1.23.2.7.2.1&r2=1.23.2.7.2.2&diff_format=u Index: Zend/zend_ini.c diff -u Zend/zend_ini.c:1.23.2.7.2.1 Zend/zend_ini.c:1.23.2.7.2.2 --- Zend/zend_ini.c:1.23.2.7.2.1 Fri Sep 2 21:09:03 2005 +++ Zend/zend_ini.c Wed Sep 6 08:53:56 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_ini.c,v 1.23.2.7.2.1 2005/09/02 21:09:03 sniper Exp $ */ +/* $Id: zend_ini.c,v 1.23.2.7.2.2 2006/09/06 08:53:56 dmitry Exp $ */ #include "zend.h" #include "zend_qsort.h" @@ -256,8 +256,8 @@ zend_ini_entry *ini_entry; TSRMLS_FETCH(); - if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE) { - return FAILURE; + if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE || + (stage == ZEND_INI_STAGE_RUNTIME && (ini_entry->modifyable & ZEND_INI_USER) == 0)) { return FAILURE; } zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC);

« previous php.zend-engine.cvs (#5230) next »