[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Apache::Reload == Lost ENV
- Subject: Apache::Reload == Lost ENV
- Date: Fri, 1 Dec 2006 13:55:20 +0000 (GMT)
- From: Anthony Gardner <suppressed>
I'm def not the first to have noticed this, I googled but nothing sprang out at me.
I have a pkg var
our $DOCUMENT_ROOT = WWW::Utils->document_root();
and I print %ENV at package level
WWW::Utils->printenv();
If, after changing this pkg's code, I issue a new request, the DOCUMENT_ROOT is set okay and %ENV is printed out correctly. Then Apache::Reload kicks in, does its stuff and then re-runs the pkg. This time the HTTP_* stuff is all missing and all that remains in %ENV are the vars we set up in apache conf files.
Thus DOCUMENT_ROOT (and others) have become unset.
Am I doing sth stupidly wrong here?
-Ants (feeling a bit foolish)
Send instant messages to your online friends http://uk.messenger.yahoo.com
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.