code triggers the warnings?
Cheers!
Dan
On 5/18/2021 3:26 PM, Daniel Ragle wrote:
Ed, thanks for your response!
I had already tried most of your suggestions: Putting the module load in
the startup (with or without the import) didn't make a difference (still
get the prototype mismatch
Ed, thanks for your response!
I had already tried most of your suggestions: Putting the module load in
the startup (with or without the import) didn't make a difference (still
get the prototype mismatch on the second and subsequent runs of the
script); and yah, importing nothing and referring
warnings;
>
> use Time::HiRes qw(time);
>
> use CGI;
> my $cgi = CGI->new();
>
> print $cgi->header();
> print "Hello World\n";
> print "HiRes time is: ", time(), "\n";
> #
>
> The script
The script runs properly as far as I can see, but I'm getting Prototype
Mismatch warnings in the log with each hit after the first one:
Prototype mismatch: sub
ModPerl::ROOT::ModPerl::PerlRunPrefork::var_www_test_test2_2epl::time:
none vs () at /var/www/test/test2.pl line 6.
Other tests r
Thank you Randolf for your answer.
Of course for the "subroutine redefined" messages, I agree.
But what about the "Prototype mismatch" messages ?
Ben
> On 22 Aug 2017, at 16:50, Randolf Richardson <rand...@modperl.pl> wrote:
>
> The "subroutine re
Module Apache2::Reload
> PerlInitHandler Apache2::Reload
> PerlSetVar ReloadDirectories "/d/"
>
> It works perfectly.
> Of course I get the warnings "Subroutine redefined" when modules are reloaded.
>
> But I also get :
> Prototype mismatch: sub Functions::to
is reloaded :
Prototype mismatch: sub Functions::encode_json: none vs ($@) at /d/Mod.pm line
6.
encode_json is exported by default, but I don't use it at all.
Thank you again,
Ben
> On 22 Aug 2017, at 12:32, 风河 <m...@fenghe.org> wrote:
>
> I think JSON module export from_j
d" when modules are reloaded.
>
> But I also get :
> Prototype mismatch: sub Functions::to_json: none vs ($@) at /d/Mod.pm line 6.
> Prototype mismatch: sub Functions::from_json: none vs ($@) at /d/Mod.pm line
> 6.
> Prototype mismatch: sub Functions::sha256_hex: no
Hello,
I use Apache2::Reload on my dev env :
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlSetVar ReloadDirectories "/d/"
It works perfectly.
Of course I get the warnings "Subroutine redefined" when modules are reloaded.
But I also get :
Prototype mis
?
The line in the script where this ocures says:
use FileHandle;
cheers
Worik
Prototype mismatch: sub Apache::AdMachine::Track::LOCK_UN: none vs ()
Prototype mismatch: sub Apache::AdMachine::Track::LOCK_NB: none vs ()
Prototype mismatch: sub Apache::AdMachine::Track::SEEK_END: none vs
I get the following messages in my apache2/error.log when I restart.
Why is that? What steps should I take to diagnose the problem?
The line in the script where this ocures says:
use FileHandle;
cheers
Worik
Prototype mismatch: sub Apache::AdMachine::Track::LOCK_UN: none vs ()
Prototype
On Tue 26 Aug 2008, Darragh Gammell wrote:
Subroutine main::strftime redefined at
/usr/share/perl/5.8/Exporter.pm line 66.
at /home/secure/public_html/tagtag/send.cgi line 10
Prototype mismatch: sub main::strftime: none vs ($\@;$) at
/usr/share/perl/5.8/Exporter.pm line 66.
at /home/secure
Hi
I'm getting this error in my apache logs but I've no idea how to fix it. Any
help would be much appreciated.
[Tue Aug 26 10:07:55 2008] [error] [client ] Prototype mismatch: sub
main::strftime: none vs ($\\@;$) at /usr/share/perl/5.8/Exporter.pm line
66., referer: https://secure.blah.net.au
Hi,
I'm using Apache2 and mod_perl
Server: Apache2/2.0.55 (Ubuntu) mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2
Perl/v5.8.7
I am getting the following error in /var/log/apache2/error.log
Prototype mismatch: sub
ModPerl::ROOT::ModPerl::PerlRun
John Gateley wrote:
Prototype mismatch: sub
ModPerl::ROOT::ModPerl::PerlRun::home_yadb_httpd_cgi_2dbin_CoverArtSubmitFile_2ecgi::lstat:
none vs ($) at /usr/share/perl/5.8/Exporter.pm line 65.
at /home/yadb/httpd/cgi-bin/CoverArtSubmitFile.cgi line 13
CoverArtSubmitFile.cgi line 13
On Thu, 29 May 2008 14:33:54 -0400
Michael Peters [EMAIL PROTECTED] wrote:
John Gateley wrote:
use File::stat;
So by default it's trying to override the built-in stat() function. Seems to
be
conflicting. Overriding built-in's usually not a good idea.
Thanks - I changed it to use
16 matches
Mail list logo