From 4d11d90880e63aaf125d09140775efdb287b9704 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Mon, 13 Aug 2001 07:55:39 +0000 Subject: Track down a few more functions that don't check for 0 args and use faster mechanism --- ext/standard/head.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/standard/head.c') diff --git a/ext/standard/head.c b/ext/standard/head.c index 532cd7c5a6..38f8438f7f 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -180,6 +180,10 @@ PHP_FUNCTION(setcookie) Return true if headers have already been sent, false otherwise */ PHP_FUNCTION(headers_sent) { + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } + if (SG(headers_sent)) { RETURN_TRUE; } else { -- cgit v1.2.1