summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2002-09-17 12:37:26 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2002-09-17 12:37:26 +0000
commit0c7d9c3742667b77a84bb6e571d00b6376c18d50 (patch)
treeb191bcc6492c313897a78997712c03e1fd744a7d /ext/standard/basic_functions.c
parent31429c60dbf50b5ad1351f4b9fbe528cd6290d67 (diff)
downloadphp-git-0c7d9c3742667b77a84bb6e571d00b6376c18d50.tar.gz
headers_sent() may now return information about where output started
using the optional $file and $line reference parameters
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index e6591af85a..916ffbcea6 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -94,6 +94,7 @@ php_basic_globals basic_globals;
#include "php_fopen_wrappers.h"
+static unsigned char first_and_second__args_force_ref[] = { 2, BYREF_FORCE, BYREF_FORCE };
static unsigned char second_and_third_args_force_ref[] = { 3, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
static unsigned char second_args_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE };
static unsigned char third_and_fourth_args_force_ref[] = { 4, BYREF_NONE, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
@@ -540,7 +541,7 @@ function_entry basic_functions[] = {
PHP_FE(ini_restore, NULL)
PHP_FE(setcookie, NULL)
- PHP_FE(header, NULL)
+ PHP_FE(header, first_and_second__args_force_ref)
PHP_FE(headers_sent, NULL)
PHP_FE(connection_aborted, NULL)