Bug #18502: define user variable through httpd.conf
| From: | pierre dot baudracco at aliacom dot fr | Date: | Tue, 23 Jul 2002 17:08:21 +0000 |
| Subject: | Bug #18502: define user variable through httpd.conf | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14911@lists.php.net to get a copy of this message | ||
From: pierre.baudracco@aliacom.fr
Operating system: Linux
PHP version: 4.2.1
PHP Bug Type: Feature/Change Request
Bug description: define user variable through httpd.conf
I would like to define php variable in httpd.conf.
I have a PHP app (OBM) which includes many files and so use
the php.ini include_path var.
eg: include("obminclude/global.inc");
Now i would like to install more than one occurence of OBM on one server,
but with different obm version.
I think of changing the "obminclude" to a variable $obminclude.
But where to define this var ? not in the php files (too many) and i would
prefer a single location.
It can't be in an included file as it defines the include path.
So in the virtual host of the obm instance would be cool.
But we didn't succeed in this as ini_get(var) doesn't
return the var and get_cfg_var(var) returns the value found in php.ini and
not the httpd.conf modified one.
So could this feature be added ? or is there an other way to pass variable
?
auto prepend a one line file consisting of $obminclude=...
doesn't really satisfies me.
--
Edit bug report at http://bugs.php.net/?id=18502&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18502&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18502&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18502&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18502&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18502&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18502&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18502&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18502&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18502&r=globals