ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
[mp2]: internal_redirect causes sigsev
by Udo Rader other posts by this author
Oct 10 2003 6:06PM messages near this date
Re: [mp2]: internal_redirect causes sigsev | Re: [mp2]: internal_redirect causes sigsev
hi,

we have some troubles with internal_redirect after upgrading to 1.99_10, here's what we try 
to do:

before mp 1.99_09 this line used to work:

-------CUT-------
$r-> internal_redirect( $r->uri );
-------CUT-------

after upgrading to 1.99_10, we get the following in error_log:
-------CUT-------
[Fri Oct 10 18:34:13 2003] [error] [client 213.47.198.91] $r wasn't passed at /usr/bestsolut
ion/httpd/mod_perl/BestApache/DiscussionBoard2/Save.pm line 45.
-------CUT-------

so we thought, internal_redirect maybe expects new arguments and after 
reviewing the xs files we tried this version:

-------CUT-------
$r-> internal_redirect( $r, $r->uri );
-------CUT-------

this however gives the following error:

-------CUT-------
[Fri Oct 10 19:00:25 2003] [error] [client 213.47.198.91] Usage: Apache::RequestRec::interna
l_redirect(r, new_uri) at /usr/bestsolution/httpd/mod_perl/BestApache/DiscussionBoard2/Save.
pm line 46.
-------CUT-------

... did we miss something or is this a bug?

We temporarily worked around the problem by using $r-> headers_out, but this
cannot be a permanent solution.

happy hacking

udo

-- 
  "Well, if we were to build it idiot proof, 
        someone would build a better idiot."
                                    Civilme
Thread:
Udo Rader
Udo Rader
Stas Bekman

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved