You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Yu Di <yd...@eecs.uic.edu> on 2000/04/03 01:50:14 UTC

Error in Apache::ASP with Perl 5.6.0

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.

Di, Yu
4.2 



Re: Error in Apache::ASP with Perl 5.6.0

Posted by Doug MacEachern <do...@covalent.net>.
On Tue, 4 Apr 2000, Yu Di wrote:

> Hi, there was an error with my mailbox and I can't open your mail and test
> the patch, could you please send it again? Thank you!

sure..

--- 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) {




Re: Error in Apache::ASP with Perl 5.6.0

Posted by Yu Di <yd...@eecs.uic.edu>.
Hi, there was an error with my mailbox and I can't open your mail and test
the patch, could you please send it again? Thank you!

Di, Yu
4.4


Re: Error in Apache::ASP with Perl 5.6.0

Posted by Doug MacEachern <do...@covalent.net>.
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 <be...@stockmaster.com>]
+
 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) {