diff options
| -rw-r--r-- | Zend/zend_indent.c | 3 | ||||
| -rw-r--r-- | Zend/zend_indent.h | 2 | ||||
| -rw-r--r-- | main/main.c | 4 | ||||
| -rw-r--r-- | sapi/cgi/cgi_main.c | 2 | ||||
| -rw-r--r-- | sapi/cli/php_cli.c | 2 | ||||
| -rw-r--r-- | sapi/pi3web/pi3web_sapi.c | 2 | 
6 files changed, 7 insertions, 8 deletions
diff --git a/Zend/zend_indent.c b/Zend/zend_indent.c index fea78d9c57..42e4321b3d 100644 --- a/Zend/zend_indent.c +++ b/Zend/zend_indent.c @@ -47,7 +47,7 @@ static void handle_whitespace(int *emit_whitespace)  } -ZEND_API void zend_indent() +ZEND_API void zend_indent(TSRMLS_D)  {  	zval token;  	int token_type; @@ -55,7 +55,6 @@ ZEND_API void zend_indent()  	int nest_level=0;  	int emit_whitespace[256];  	int i; -	TSRMLS_FETCH();  	memset(emit_whitespace, 0, sizeof(int)*256); diff --git a/Zend/zend_indent.h b/Zend/zend_indent.h index bba02a738b..f38e87eaef 100644 --- a/Zend/zend_indent.h +++ b/Zend/zend_indent.h @@ -23,7 +23,7 @@  #define ZEND_INDENT_H  BEGIN_EXTERN_C() -ZEND_API void zend_indent(void); +ZEND_API void zend_indent(TSRMLS_D);  END_EXTERN_C()  #endif /* ZEND_INDENT_H */ diff --git a/main/main.c b/main/main.c index 6f7e149cad..05b34b7f3a 100644 --- a/main/main.c +++ b/main/main.c @@ -2643,9 +2643,9 @@ PHPAPI int php_lint_script(zend_file_handle *file TSRMLS_DC)  #ifdef PHP_WIN32  /* {{{ dummy_indent     just so that this symbol gets exported... */ -PHPAPI void dummy_indent(void) +PHPAPI void dummy_indent(TSRMLS_D)  { -	zend_indent(); +	zend_indent(TSRMLS_C);  }  /* }}} */  #endif diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index c36729437a..ea75ee83ba 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2493,7 +2493,7 @@ consult the installation file that came with this distribution, or visit \n\  				/* Zeev might want to do something with this one day */  				case PHP_MODE_INDENT:  					open_file_for_scanning(&file_handle TSRMLS_CC); -					zend_indent(); +					zend_indent(TSRMLS_C);  					zend_file_handle_dtor(&file_handle TSRMLS_CC);  					php_output_teardown();  					return SUCCESS; diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 9f3fc4b5b7..eec117ab1f 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -1024,7 +1024,7 @@ static int do_cli(int argc, char **argv TSRMLS_DC) /* {{{ */  			/* Zeev might want to do something with this one day */  		case PHP_MODE_INDENT:  			open_file_for_scanning(&file_handle TSRMLS_CC); -			zend_indent(); +			zend_indent(TSRMLS_C);  			zend_file_handle_dtor(file_handle.handle TSRMLS_CC);  			goto out;  			break; diff --git a/sapi/pi3web/pi3web_sapi.c b/sapi/pi3web/pi3web_sapi.c index 64eb2a6c99..b9076f17d8 100644 --- a/sapi/pi3web/pi3web_sapi.c +++ b/sapi/pi3web/pi3web_sapi.c @@ -385,7 +385,7 @@ MODULE_API DWORD PHP5_wrapper(LPCONTROL_BLOCK lpCB)  			  }  				if ( open_file_for_scanning( &file_handle TSRMLS_CC ) == SUCCESS )  					{ -					zend_indent(); +					zend_indent(TSRMLS_C);  					}  				else  					{  | 
