[svn:mod_parrot] r558 - mod_parrot/trunk/lib/ModParrot/Apache

[email protected] Tue, 30 Dec 2008 07:52:58 -0800 (PST)
Newsgroups perl.cvs.mod_parrot
Message-ID <[email protected]>
Author: jhorwitz
Date: Tue Dec 30 07:52:58 2008
New Revision: 558

Modified:
   mod_parrot/trunk/lib/ModParrot/Apache/Module.pir

Log:
make get_conf HLL friendly by returning an empty hash instead of a null PMC


Modified: mod_parrot/trunk/lib/ModParrot/Apache/Module.pir
==============================================================================
--- mod_parrot/trunk/lib/ModParrot/Apache/Module.pir	(original)
+++ mod_parrot/trunk/lib/ModParrot/Apache/Module.pir	Tue Dec 30 07:52:58 2008
@@ -161,7 +161,14 @@
 
     get_conf = get_root_global ['ModParrot'; 'NCI' ], "get_module_config"
     config = get_conf(name, per_dir_config, is_directory)
-    
+
+    # XXX rakudo doesn't deal with NULL PMCs very well -- need to wrap this
+    if null config goto null_config
+    goto return_config
+  null_config:
+    config = new 'Hash'
+
+  return_config:
     .return(config)
 .end