]> granicus.if.org Git - php/commitdiff
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI...
authorSebastian Bergmann <sebastian@php.net>
Tue, 25 Mar 2003 08:07:13 +0000 (08:07 +0000)
committerSebastian Bergmann <sebastian@php.net>
Tue, 25 Mar 2003 08:07:13 +0000 (08:07 +0000)
25 files changed:
ext/ftp/ftp.c
ext/pcre/php_pcre.c
ext/pcre/php_pcre.h
ext/session/session.c
ext/standard/aggregation.c
ext/standard/basic_functions.c
ext/standard/credits.c
ext/standard/credits.h
ext/standard/css.c
ext/standard/css.h
ext/standard/datetime.c
ext/standard/datetime.h
ext/standard/head.c
ext/standard/head.h
ext/standard/info.c
ext/standard/info.h
ext/standard/levenshtein.c
main/output.c
main/php_variables.c
sapi/apache/php_apache.c
sapi/apache2handler/php_functions.c
sapi/apache_hooks/php_apache.c
sapi/cgi/cgi_main.c
sapi/cli/php_cli.c
sapi/servlet/servlet.c

index cc0f2d75ed1c8f5bfef5d3baa67145bb58ee80b9..fa184aa4a3fdebae11b3cc39b326ab82d98c0100 100644 (file)
@@ -103,7 +103,7 @@ static int          ftp_type(ftpbuf_t *ftp, ftptype_t type);
 static databuf_t*      ftp_getdata(ftpbuf_t *ftp TSRMLS_DC);
 
 /* accepts the data connection, returns updated data buffer */
-static databuf_t*      data_accept(databuf_t *data, ftpbuf_t *ftp);
+static databuf_t*      data_accept(databuf_t *data, ftpbuf_t *ftp TSRMLS_DC);
 
 /* closes the data connection, returns NULL */
 static databuf_t*      data_close(ftpbuf_t *ftp, databuf_t *data);
@@ -790,7 +790,7 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type,
                goto bail;
        }
 
-       if ((data = data_accept(data, ftp)) == NULL) {
+       if ((data = data_accept(data, ftp TSRMLS_CC)) == NULL) {
                goto bail;
        }
 
@@ -874,7 +874,7 @@ ftp_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, i
        if (!ftp_getresp(ftp) || (ftp->resp != 150 && ftp->resp != 125)) {
                goto bail;
        }
-       if ((data = data_accept(data, ftp)) == NULL) {
+       if ((data = data_accept(data, ftp TSRMLS_CC)) == NULL) {
                goto bail;
        }
 
@@ -1469,14 +1469,13 @@ bail:
 /* {{{ data_accept
  */
 databuf_t*
-data_accept(databuf_t *data, ftpbuf_t *ftp)
+data_accept(databuf_t *data, ftpbuf_t *ftp TSRMLS_DC)
 {
        php_sockaddr_storage addr;
        socklen_t                       size;
 
 #if HAVE_OPENSSL_EXT
        SSL_CTX         *ctx;
-       TSRMLS_FETCH(); 
 #endif
 
        if (data->fd != -1) {
@@ -1603,7 +1602,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
        }
 
        /* pull data buffer into tmpfile */
-       if ((data = data_accept(data, ftp)) == NULL) {
+       if ((data = data_accept(data, ftp TSRMLS_CC)) == NULL) {
                goto bail;
        }
        size = 0;
@@ -1717,7 +1716,7 @@ ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t typ
                goto bail;
        }
 
-       if ((data = data_accept(data, ftp)) == NULL) {
+       if ((data = data_accept(data, ftp TSRMLS_CC)) == NULL) {
                goto bail;
        }
 
@@ -1834,7 +1833,7 @@ ftp_nb_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type
        if (!ftp_getresp(ftp) || (ftp->resp != 150 && ftp->resp != 125)) {
                goto bail;
        }
-       if ((data = data_accept(data, ftp)) == NULL) { 
+       if ((data = data_accept(data, ftp TSRMLS_CC)) == NULL) { 
                goto bail;
        }
        ftp->data = data;
index 3a75f26318d40df29e086944278ca3b30b3dce8f..f31a6bf2077b79bc57d07f5a964dd10b717ebdef 100644 (file)
@@ -131,7 +131,7 @@ static PHP_RINIT_FUNCTION(pcre)
 
 /* {{{ pcre_get_compiled_regex
  */
-PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_options) {
+PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_options TSRMLS_DC) {
        pcre                            *re = NULL;
        int                                      coptions = 0;
        int                                      soptions = 0;
@@ -151,7 +151,6 @@ PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_
 #endif
        pcre_cache_entry        *pce;
        pcre_cache_entry         new_entry;
-       TSRMLS_FETCH();
 
        /* Try to lookup the cached regex entry, and if successful, just pass
           back the compiled pattern, otherwise go on and compile it. */
@@ -408,7 +407,7 @@ static void php_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global)
        }
 
        /* Compile regex or get it from cache. */
-       if ((re = pcre_get_compiled_regex(Z_STRVAL_PP(regex), &extra, &preg_options)) == NULL) {
+       if ((re = pcre_get_compiled_regex(Z_STRVAL_PP(regex), &extra, &preg_options TSRMLS_CC)) == NULL) {
                RETURN_FALSE;
        }
 
@@ -612,14 +611,13 @@ static int preg_get_backref(char **str, int *backref)
 
 /* {{{ preg_do_repl_func
  */
-static int preg_do_repl_func(zval *function, char *subject, int *offsets, int count, char **result)
+static int preg_do_repl_func(zval *function, char *subject, int *offsets, int count, char **result TSRMLS_DC)
 {
        zval            *retval_ptr;            /* Function return value */
        zval       **args[1];                   /* Argument to pass to function */
        zval            *subpats;                       /* Captured subpatterns */ 
        int                      result_len;            /* Return value length */
        int                      i;
-       TSRMLS_FETCH();
 
        MAKE_STD_ZVAL(subpats);
        array_init(subpats);
@@ -769,7 +767,7 @@ PHPAPI char *php_pcre_replace(char *regex,   int regex_len,
                                         walk_last;                     /* Last walked character */
 
        /* Compile regex or get it from cache. */
-       if ((re = pcre_get_compiled_regex(regex, &extra, &preg_options)) == NULL) {
+       if ((re = pcre_get_compiled_regex(regex, &extra, &preg_options TSRMLS_CC)) == NULL) {
                return NULL;
        }
 
@@ -824,7 +822,7 @@ PHPAPI char *php_pcre_replace(char *regex,   int regex_len,
                        } else if (is_callable_replace) {
                                /* Use custom function to get replacement string and its length. */
                                eval_result_len = preg_do_repl_func(replace_val, subject, offsets,
-                                                                                                       count, &eval_result);
+                                                                                                       count, &eval_result TSRMLS_CC);
                                new_len += eval_result_len;
                        } else { /* do regular substitution */
                                walk = replace;
@@ -1174,7 +1172,7 @@ PHP_FUNCTION(preg_split)
        convert_to_string_ex(subject);
        
        /* Compile regex or get it from cache. */
-       if ((re = pcre_get_compiled_regex(Z_STRVAL_PP(regex), &extra, &preg_options)) == NULL) {
+       if ((re = pcre_get_compiled_regex(Z_STRVAL_PP(regex), &extra, &preg_options TSRMLS_CC)) == NULL) {
                RETURN_FALSE;
        }
        
@@ -1408,7 +1406,7 @@ PHP_FUNCTION(preg_grep)
        }
        
        /* Compile regex or get it from cache. */
-       if ((re = pcre_get_compiled_regex(Z_STRVAL_PP(regex), &extra, &preg_options)) == NULL) {
+       if ((re = pcre_get_compiled_regex(Z_STRVAL_PP(regex), &extra, &preg_options TSRMLS_CC)) == NULL) {
                RETURN_FALSE;
        }
 
index d65f3412f24fd7a3c97b08b966ee1862cb6de04e..938f61284493a7bd360987ec94ea721ceae0d8fc 100644 (file)
@@ -42,7 +42,7 @@ PHP_FUNCTION(preg_quote);
 PHP_FUNCTION(preg_grep);
 
 PHPAPI char *php_pcre_replace(char *regex,   int regex_len, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int *result_len, int limit TSRMLS_DC);
-PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *options);
+PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *options TSRMLS_DC);
 
 extern zend_module_entry pcre_module_entry;
 #define pcre_module_ptr &pcre_module_entry
index 4515dfc8cd8535c15ba77bdaf3518b1f55407540..6a5dc71dd0ad1a75dd19d93ca3d2b6751a77787f 100644 (file)
@@ -959,7 +959,7 @@ static void php_session_send_cookie(TSRMLS_D)
                struct timeval tv;
                
                gettimeofday(&tv, NULL);
-               date_fmt = php_std_date(tv.tv_sec + PS(cookie_lifetime));
+               date_fmt = php_std_date(tv.tv_sec + PS(cookie_lifetime) TSRMLS_CC);
                
                smart_str_appends(&ncookie, COOKIE_EXPIRES);
                smart_str_appends(&ncookie, date_fmt);
index b474172f87d40919133d37d7a3fd99bb4161bee2..539795ffd9c7d8610acfa2fbe22c7856602be263 100644 (file)
@@ -100,7 +100,7 @@ static void aggregate_methods(zend_class_entry *ce, zend_class_entry *from_ce, i
        }
 #if (HAVE_PCRE || HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
        else if (aggr_type == AGGREGATE_BY_REGEXP) {
-               if ((re = pcre_get_compiled_regex(Z_STRVAL_P(aggr_filter), &re_extra, &re_options)) == NULL) {
+               if ((re = pcre_get_compiled_regex(Z_STRVAL_P(aggr_filter), &re_extra, &re_options TSRMLS_CC)) == NULL) {
                        return;
                }
        }
@@ -206,7 +206,7 @@ static void aggregate_properties(zval *obj, zend_class_entry *from_ce, int aggr_
        }
 #if (HAVE_PCRE || HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
        else if (aggr_type == AGGREGATE_BY_REGEXP) {
-               if ((re = pcre_get_compiled_regex(Z_STRVAL_P(aggr_filter), &re_extra, &re_options)) == NULL) {
+               if ((re = pcre_get_compiled_regex(Z_STRVAL_P(aggr_filter), &re_extra, &re_options TSRMLS_CC)) == NULL) {
                        return;
                }
        }
index 5da6bbf956e9832973397b187795ead6bf223601..927cc1282c70e1f3c8542e92a461b1807c4789bc 100644 (file)
@@ -2919,8 +2919,6 @@ PHP_FUNCTION(parse_ini_file)
                        convert_to_boolean_ex(process_sections);
                
                        if (Z_BVAL_PP(process_sections)) {
-                               TSRMLS_FETCH();
-
                                BG(active_ini_file_section) = NULL;
                                ini_parser_cb = (zend_ini_parser_cb_t) php_ini_parser_cb_with_sections;
                        } else {
index 45bcc6818bfcc71816b5c9ac040e3122c5427d0d..6eaf65e72dca3d71ebe033f54e10be3dfc2e4671 100644 (file)
 
 /* {{{ php_print_credits
  */
-PHPAPI void php_print_credits(int flag)
+PHPAPI void php_print_credits(int flag TSRMLS_DC)
 {
-       TSRMLS_FETCH();
-
        if (flag & PHP_CREDITS_FULLPAGE) {
                php_print_info_htmlhead(TSRMLS_C);
        }
index 6377eed1c8b81252e0e558d414eaf1abebf29e34..9e0cb97bb45c97f664ff169683e09b45b6d68938 100644 (file)
@@ -37,6 +37,6 @@
 
 #endif /* HAVE_CREDITS_DEFS */
 
-PHPAPI void php_print_credits(int flag);
+PHPAPI void php_print_credits(int flag TSRMLS_DC);
 
 #endif
index e3fb08f55c1e66bb167c07255b53f611280c05c9..31b545523495672eeee6337ea2bca34ac2f9016a 100644 (file)
 
 /* {{{ php_info_print_css
  */
-PHPAPI void php_info_print_css(void)
+PHPAPI void php_info_print_css(TSRMLS_D)
 {
-       TSRMLS_FETCH();
-
        PUTS("body {background-color: #ffffff; color: #000000;}\n");
        PUTS("body, td, th, h1, h2 {font-family: sans-serif;}\n");
        PUTS("pre {margin: 0px; font-family: monospace;}\n");
index f809f6022e3f5078350fb361110dedd43a263da4..c5a5e4b537ead4bcfc8d6d4d96aedfb7a98a69c3 100644 (file)
@@ -21,6 +21,6 @@
 #ifndef CSS_H
 #define CSS_H
 
-PHPAPI void php_info_print_css(void);
+PHPAPI void php_info_print_css(TSRMLS_D);
 
 #endif
index cb1b04c5231c6ade9f9ebcaa190919dad2c82cff..0c8376ad77f77e15568b5f1117c5e9c8689ba898 100644 (file)
@@ -881,11 +881,10 @@ PHP_FUNCTION(getdate)
 
 /* {{{ php_std_date
    Return date string in standard format for http headers */
-char *php_std_date(time_t t)
+char *php_std_date(time_t t TSRMLS_DC)
 {
        struct tm *tm1, tmbuf;
        char *str;
-       TSRMLS_FETCH();
 
        tm1 = php_gmtime_r(&t, &tmbuf);
        str = emalloc(81);
index 8aef601797a612e54849355a23214c2241601ba5..6f0f368abf0cff3de3842e972dd51e749fb5c7e0 100644 (file)
@@ -38,7 +38,7 @@ PHP_FUNCTION(gmstrftime);
 PHP_FUNCTION(strtotime);
 
 int php_idate(char format, int timestamp, int gm);
-extern char *php_std_date(time_t t);
+extern char *php_std_date(time_t t TSRMLS_DC);
 void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gm);
 #if HAVE_STRFTIME
 void _php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gm);
index c993664269700651d5cc054ecbc12e20e49dfc0f..4d380161297215201699a529c253c402c08ceb68 100644 (file)
@@ -55,10 +55,8 @@ PHP_FUNCTION(header)
 }
 /* }}} */
 
-PHPAPI int php_header()
+PHPAPI int php_header(TSRMLS_D)
 {
-       TSRMLS_FETCH();
-
        if (sapi_send_headers(TSRMLS_C)==FAILURE || SG(request_info).headers_only) {
                return 0; /* don't allow output */
        } else {
@@ -98,14 +96,14 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t
                 * pick an expiry date 1 year and 1 second in the past
                 */
                t = time(NULL) - 31536001;
-               dt = php_std_date(t);
+               dt = php_std_date(t TSRMLS_CC);
                sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s", name, dt);
                efree(dt);
        } else {
                sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : "");
                if (expires > 0) {
                        strcat(cookie, "; expires=");
-                       dt = php_std_date(expires);
+                       dt = php_std_date(expires TSRMLS_CC);
                        strcat(cookie, dt);
                        efree(dt);
                }
index 59b4b26f6bc12cfe57385275957f362b6a0f8a58..9f37d25f9e70b235211887e8217d45b35fff69d1 100644 (file)
@@ -26,7 +26,7 @@ PHP_FUNCTION(header);
 PHP_FUNCTION(setcookie);
 PHP_FUNCTION(headers_sent);
 
-PHPAPI int php_header(void);
+PHPAPI int php_header(TSRMLS_D);
 PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, time_t expires, char *path, int path_len, char *domain, int domain_len, int secure TSRMLS_DC);
 
 #endif
index 0b0a2b36de8049aefb097b3dfe85dabbbe9daee9..3033facb2150f4db324d7f71ecb22bd13e1c737f 100644 (file)
@@ -184,10 +184,10 @@ static void php_print_gpcse_array(char *name, uint name_length TSRMLS_DC)
 
 /* {{{ php_info_print_style
  */
-void php_info_print_style(void)
+void php_info_print_style(TSRMLS_D)
 {
        php_printf("<style type=\"text/css\"><!--\n");
-       php_info_print_css();
+       php_info_print_css(TSRMLS_C);
        php_printf("//--></style>\n");
 }
 /* }}} */
@@ -357,7 +357,7 @@ PHPAPI void php_print_info_htmlhead(TSRMLS_D)
        PUTS("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n");
        PUTS("<html>");
        PUTS("<head>\n");
-       php_info_print_style();
+       php_info_print_style(TSRMLS_C);
        PUTS("<title>phpinfo()</title>");
 /*
        php_printf("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%s\" />\n", charset);
@@ -897,7 +897,7 @@ PHP_FUNCTION(phpcredits)
                flag = PHP_CREDITS_ALL;
        } 
 
-       php_print_credits(flag);
+       php_print_credits(flag TSRMLS_CC);
        RETURN_TRUE;
 }
 /* }}} */
index 69b65b364b129f9ca230103dd288ee82beca15b6..b68615541bc27de624117338c0b9bf77afb19cf3 100644 (file)
@@ -68,7 +68,7 @@ PHPAPI char *php_info_html_esc(char *string TSRMLS_DC);
 PHPAPI void php_print_info_htmlhead(TSRMLS_D);
 PHPAPI void php_print_info(int flag TSRMLS_DC);
 PHPAPI void php_print_style(void);
-PHPAPI void php_info_print_style(void);
+PHPAPI void php_info_print_style(TSRMLS_D);
 PHPAPI void php_info_print_table_colspan_header(int num_cols, char *header);
 PHPAPI void php_info_print_table_header(int num_cols, ...);
 PHPAPI void php_info_print_table_row(int num_cols, ...);
index e4a91c5167e0581e7782fe95c582f8d0c3739160..edd85ad958539cbb53a4b737f2b5fcfe4aad54b3 100644 (file)
@@ -75,10 +75,8 @@ static int reference_levdist(const char *s1, int l1,
 
 /* {{{ custom_levdist
  */
-static int custom_levdist(char *str1, char *str2, char *callback_name) 
+static int custom_levdist(char *str1, char *str2, char *callback_name TSRMLS_DC
 {
-       TSRMLS_FETCH();
-
        php_error_docref(NULL TSRMLS_CC, E_WARNING, "The general Levenshtein support is not there yet");
        /* not there yet */
 
@@ -132,7 +130,7 @@ PHP_FUNCTION(levenshtein)
                convert_to_string_ex(callback_name);
 
                distance = custom_levdist(Z_STRVAL_PP(str1), Z_STRVAL_PP(str2),
-                                                                 Z_STRVAL_PP(callback_name));
+                                                                 Z_STRVAL_PP(callback_name) TSRMLS_CC);
                break;
 
        default: 
index 00b30ed75d70fef59d99cd38b6910200852e0623..21883574c0ad08f8c9a51067c9aab861de6d4358 100644 (file)
@@ -683,10 +683,10 @@ static int php_ub_body_write(const char *str, uint str_length TSRMLS_DC)
        int result = 0;
 
        if (SG(request_info).headers_only) {
-               php_header();
+               php_header(TSRMLS_C);
                zend_bailout();
        }
-       if (php_header()) {
+       if (php_header(TSRMLS_C)) {
                if (zend_is_compiling(TSRMLS_C)) {
                        OG(output_start_filename) = zend_get_compiled_filename(TSRMLS_C);
                        OG(output_start_lineno) = zend_get_compiled_lineno(TSRMLS_C);
index a47980371d26af94e756af50c21b7d6a83c887f0..1c7ee890a3f57e9ccf46bc6e099fbf36b2bc1480 100644 (file)
@@ -454,7 +454,7 @@ PHPAPI int php_handle_special_queries(TSRMLS_D)
                if (php_info_logos(SG(request_info).query_string+1 TSRMLS_CC)) {
                        return 1;
                } else if (!strcmp(SG(request_info).query_string+1, PHP_CREDITS_GUID)) {
-                       php_print_credits(PHP_CREDITS_ALL);
+                       php_print_credits(PHP_CREDITS_ALL TSRMLS_CC);
                        return 1;
                }
        }
index 9a4e409fa83c05f29f9e968ad233a677c9d52a0d..733cfba0e544417fc455968d8d8f6beaa6a7bf42 100644 (file)
@@ -321,7 +321,7 @@ PHP_FUNCTION(virtual)
        }
 
        php_end_ob_buffers(1 TSRMLS_CC);
-       php_header();
+       php_header(TSRMLS_C);
 
        if (run_sub_req(rr)) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", (*filename)->value.str.val);
index 665af1eec7b275bcc2071e7b3d0db4bb1bc1fbcd..1664528dbed8f7c2960fa05048188c778928680a 100644 (file)
@@ -92,7 +92,7 @@ PHP_FUNCTION(virtual)
 
        /* Flush everything. */
        php_end_ob_buffers(1 TSRMLS_CC);
-       php_header();
+       php_header(TSRMLS_C);
 
        if (ap_run_sub_req(rr)) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", Z_STRVAL_PP(filename));
index 9ac4a8bb3c6f8f43c96c2a13e0afec205782ecd1..a7869c3e433cc568f79a90184f42bba08df76e00 100644 (file)
@@ -1732,7 +1732,7 @@ PHP_FUNCTION(virtual)
        }
 
        php_end_ob_buffers(1 TSRMLS_CC);
-       php_header();
+       php_header(TSRMLS_C);
 
        if (run_sub_req(rr)) {
                php_error(E_WARNING, "Unable to include '%s' - request execution failed", (*filename)->value.str.val);
index 769fab13b9700c4f18e23c16b4404adc0941c542..5d99c2244f35b2bfdd6553c1be11d3cd72e31f91 100644 (file)
@@ -464,7 +464,9 @@ static void sapi_cgi_register_variables(zval *track_vars_array TSRMLS_DC)
 
 static void sapi_cgi_log_message(char *message)
 {
-       if (php_header()) {
+       TSRMLS_FETCH();
+
+       if (php_header(TSRMLS_C)) {
                fprintf(stderr, "%s", message);
                fprintf(stderr, "\n");
        }
index c053aef435a7b7dc67adc875af95240a38c78967..1fedbe1c35e6f109dc6a262fbd7f7db18e49f327 100644 (file)
@@ -238,7 +238,9 @@ static void sapi_cli_register_variables(zval *track_vars_array TSRMLS_DC)
 
 static void sapi_cli_log_message(char *message)
 {
-       if (php_header()) {
+       TSRMLS_FETCH();
+
+       if (php_header(TSRMLS_C)) {
                fprintf(stderr, "%s", message);
                fprintf(stderr, "\n");
        }
index e82a4dd1b1cede8b47f4cc9ef0694751c7869088..5d859e53a36aba493ceb745fa809a3573f845326 100644 (file)
@@ -375,7 +375,7 @@ JNIEXPORT void JNICALL Java_net_php_servlet_send
                        }
                } else {
                        php_execute_script(&file_handle TSRMLS_CC);
-                       php_header();                   /* Make sure headers have been sent */
+                       php_header(TSRMLS_C);                   /* Make sure headers have been sent */
                }
 
                /*