if (SvIOK(status_sv)) {
status = SvIVX(status_sv);
}
else if (status_sv == &PL_sv_undef) {
status = OK;
}
else if (SvPOK(status_sv)) {
status = SvIVx(status_sv);
MP_TRACE_h(MP_FUNC,
"coercing handler %s's return value '%s' into %d",
handler->name, SvPVX(status_sv), status);
}
else {
status = HTTP_INTERNAL_SERVER_ERROR;
ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
"handler %s didn't return a valid return value!",
handler->name);
}
looks remarkably similar to something I proposed, so sure (with comments, of course :)
glad to finally have this worked out.
--Geoff
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
