On Thu, 27 Jan 2000, Matt Sergeant wrote:
> Am I just stupid, or can you not get at PerlSetVar's at server startup time?
>
> I've tried:
>
> Apache->request->dir_config (segfaults)
> Apache->server->dir_config (segfaults)
> and
> Apache::dir_config (script stops, but httpd continues...)
> Apache::dir_config(undef, 'Var') (segfaults)
>
> This is on the latest cvs version. Should I drop back to 1.21?
support for this wasn't added until post-1.21:
add per-server PerlSetVar variables, accessed using
Apache->server->dir_config or $r->server->dir_config.
$r->dir_config merges them with per-directory variables.
[Eric Cholet <[EMAIL PROTECTED]>]
I just tried it for the first time, core dump here too, patch below
fixes..
--- Apache.xs 1999/12/30 19:22:48 1.84
+++ Apache.xs 2000/01/28 04:55:13
@@ -1847,6 +1847,7 @@
server_rec *s;
CODE:
+ RETVAL = Nullsv;
if(r && r->per_dir_config) {
c = (perl_dir_config *)get_module_config(r->per_dir_config,
&perl_module);