Quoting dan...@zoltak.com:
Quoting dan...@zoltak.com:
Quoting Scott MacVicar <sc...@macvicar.net>:
Ideally both should be performed to ensure the error_log path is within
the open_base.
In the function OnUpdateErrorLog in main.c is there anyway to obtain
the HTTP_HOST or SERVER_NAME variable or ideally the DOCUMENT_ROOT. I
have tried using getenv() and sapi_getenv() without success. Are there
any other methods?
It appears there was a bug in PHP prior to 5.2.7 where
PG(open_base_dir) had not been initialised in the OnUpdateErrorLog
therefore the php_check_open_basedir() function was never being called
if a custom error_log was specified in the .htaccess.
So in fact the custom code we had should have never worked when the
.htaccess had an error_log defined. I have now reworked our patch to
perform some extra validation in our environment so this scenario works.
Thanks to everyone that attempted to steer me in the right direction :)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php