On Sun, 2 Apr 2000, Yu Di wrote:

> Hi, I installed Apache::ASP module with Perl 5.6.0 and mod_perl 1.22 and
> Apache 1.3.12. When I started to use it with any file, I got the error
> log:
>  
> " [error] Can't upgrade that kind of scalar at /usr/lib
> /perl5/site_perl/5.6.0/Apache/ASP.pm line 1627."
> 
> I changed the "MD5"'s in ASP.pm to "Digest::MD5" (two occurrences, both at
> the head of the file, one is "use MD5", the other is "$MD5 = new MD5()"),
> then the problem disappeared.

try pre-loading Apache::ASP in httpd.conf:

PerlModule Apache::ASP

and/or try the cvs version of mod_perl which contains this fix:

Index: Changes
===================================================================
RCS file: /home/cvs/modperl/Changes,v
retrieving revision 1.445
diff -u -u -r1.445 Changes
--- Changes     2000/03/30 00:44:39     1.445
+++ Changes     2000/03/30 19:35:12
@@ -10,6 +10,11 @@
 
 =item 1.22_01-dev
 
+reset the stack pointer after calling perl_require_module() in
+perl_call_handler().  this fix will most likely cure the reports of
+"Can't upgrade that kind of scalar at ..."
+[Ben Cottrell <[EMAIL PROTECTED]>]
+
 workaround use of Perl api functions that are no longer public with
 Perl 5.6.0 + win32, thanks to Randy Kobes for spotting
 
Index: src/modules/perl/mod_perl.c
===================================================================
RCS file: /home/cvs/modperl/src/modules/perl/mod_perl.c,v
retrieving revision 1.110
diff -u -u -r1.110 mod_perl.c
--- src/modules/perl/mod_perl.c 2000/03/30 19:34:13     1.110
+++ src/modules/perl/mod_perl.c 2000/03/30 19:35:25
@@ -1557,6 +1557,7 @@
            if(stash) /* check again */
                is_method = perl_handler_ismethod(stash, method);
 #endif
+           SPAGAIN; /* reset stack pointer after require() */
        }
        
        if(!is_method && !defined_sub) {

Reply via email to