From: Mark L. Woodward Date: Sat, 29 Sep 2001 00:53:07 +0000 (+0000) Subject: Doh! Return nothing when there is nothing back from a plugin X-Git-Tag: php4~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4c4626551a6009d7be4259cde5df2af5fe53d3c;p=php Doh! Return nothing when there is nothing back from a plugin --- diff --git a/ext/msession/msession.c b/ext/msession/msession.c index 29ffc04ff9..d3992f0f98 100644 --- a/ext/msession/msession.c +++ b/ext/msession/msession.c @@ -972,9 +972,15 @@ PHP_FUNCTION(msession_plugin) DoRequest(g_conn, &g_reqb); if(g_reqb->req.stat==REQ_OK && g_reqb->req.len) + { retval = safe_estrdup(g_reqb->req.datum); - - RETURN_STRING(retval, 0) + RETURN_STRING(retval, 0) + } + else + { + RETURN_FALSE; + + } } PS_OPEN_FUNC(msession)