diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2010-04-13 11:02:15 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2010-04-13 11:02:15 +0000 |
commit | 7ef4cdf47103c0eb348b351ba5da7c1cfc93dd58 (patch) | |
tree | 48924f2ee3aa3ed726df5599ba9106837facb76f /sapi | |
parent | 1b8b6d931a65ea2d7d44adfe34005a96396dd401 (diff) | |
download | php-git-7ef4cdf47103c0eb348b351ba5da7c1cfc93dd58.tar.gz |
Remove a couple TSRMLS_FETCH() calls around ext/main/sapi
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/apache/php_apache.c | 4 | ||||
-rw-r--r-- | sapi/apache_hooks/mod_php5.c | 20 | ||||
-rw-r--r-- | sapi/apache_hooks/php_apache.c | 3 | ||||
-rw-r--r-- | sapi/phttpd/phttpd.c | 8 |
4 files changed, 15 insertions, 20 deletions
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c index 8faa6f34f0..20a5160935 100644 --- a/sapi/apache/php_apache.c +++ b/sapi/apache/php_apache.c @@ -533,14 +533,14 @@ PHP_FUNCTION(apache_lookup_uri) #if 0 +/* This function is most likely a bad idea. Just playing with it for now. - +*/ PHP_FUNCTION(apache_exec_uri) { char *filename; int filename_len; request_rec *rr=NULL; - TSRMLS_FETCH(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { return; diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c index 7b6d18de9a..33d20969be 100644 --- a/sapi/apache_hooks/mod_php5.c +++ b/sapi/apache_hooks/mod_php5.c @@ -1,20 +1,20 @@ /* +----------------------------------------------------------------------+ - | PHP Version 5 | + | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2010 The PHP Group | + | Copyright (c) 1997-2010 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | - | that is bundled with this package in the file LICENSE, and is | - | available at through the world-wide-web at | - | http://www.php.net/license/3_01.txt | + | that is bundled with this package in the file LICENSE, and is | + | available at through the world-wide-web at | + | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Rasmus Lerdorf <rasmus@php.net> | - | (with helpful hints from Dean Gaudet <dgaudet@arctic.org> | - | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | + | Authors: Rasmus Lerdorf <rasmus@php.net> | + | (with helpful hints from Dean Gaudet <dgaudet@arctic.org> | + | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ /* $Id$ */ diff --git a/sapi/apache_hooks/php_apache.c b/sapi/apache_hooks/php_apache.c index 3e0c9f0a35..20425ba151 100644 --- a/sapi/apache_hooks/php_apache.c +++ b/sapi/apache_hooks/php_apache.c @@ -1906,13 +1906,14 @@ PHP_FUNCTION(apache_lookup_uri) #if 0 +/* This function is most likely a bad idea. Just playing with it for now. +*/ PHP_FUNCTION(apache_exec_uri) { zval **filename; request_rec *rr=NULL; - TSRMLS_FETCH(); if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) { WRONG_PARAM_COUNT; diff --git a/sapi/phttpd/phttpd.c b/sapi/phttpd/phttpd.c index 11df607db7..d0748ce54e 100644 --- a/sapi/phttpd/phttpd.c +++ b/sapi/phttpd/phttpd.c @@ -71,7 +71,6 @@ php_phttpd_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_str { char *header_name, *header_content; char *p; - TSRMLS_FETCH(); http_sendheaders(PHG(cip)->fd, PHG(cip), SG(sapi_headers).http_response_code, NULL); @@ -97,8 +96,6 @@ php_phttpd_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_str static int php_phttpd_sapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) { - TSRMLS_FETCH(); - if (SG(sapi_headers).send_default_content_type) { fd_printf(PHG(cip)->fd,"Content-Type: text/html\n"); } @@ -115,7 +112,6 @@ php_phttpd_sapi_read_cookies(TSRMLS_D) /* int i; char *http_cookie = NULL; - NTSRMLS_FETCH(); i = Ns_SetIFind(NSG(conn->headers), "cookie"); if(i != -1) { @@ -135,7 +131,6 @@ php_phttpd_sapi_read_post(char *buf, uint count_bytes TSRMLS_DC) /* uint max_read; uint total_read = 0; - NTSRMLS_FETCH(); max_read = MIN(NSG(data_avail), count_bytes); @@ -243,12 +238,11 @@ php_phttpd_request_dtor(TSRMLS_D TSRMLS_DC) } -int php_doit(TSRMLS_D TSRMLS_DC) +int php_doit(TSRMLS_D) { struct stat sb; zend_file_handle file_handle; struct httpinfo *hip = PHG(cip)->hip; - TSRMLS_FETCH(); if (php_request_startup(TSRMLS_C) == FAILURE) { return -1; |