mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
Killing some unused variable warnings
This commit is contained in:
parent
3b2a88d4d4
commit
d462115341
@ -145,7 +145,9 @@ static int _Exec(int type, char *cmd, pval *array, pval *return_value)
|
||||
|
||||
|
||||
if (type == 1) {
|
||||
#if APACHE
|
||||
SLS_FETCH();
|
||||
#endif
|
||||
|
||||
if (output) PUTS(buf);
|
||||
#if APACHE
|
||||
|
@ -1695,7 +1695,6 @@ PHP_FUNCTION(fd_set)
|
||||
}
|
||||
else {
|
||||
pval ***args = (pval ***) emalloc(sizeof(pval **) * ARG_COUNT(ht));
|
||||
pval **max, result;
|
||||
int i;
|
||||
if(getParametersArrayEx(ARG_COUNT(ht), args) == FAILURE) {
|
||||
efree(args);
|
||||
|
@ -66,7 +66,6 @@ PHPAPI void php_print_info(int flag)
|
||||
DWORD dwWindowsMinorVersion = (DWORD)(HIBYTE(LOWORD(dwVersion)));
|
||||
#endif
|
||||
ELS_FETCH();
|
||||
PLS_FETCH();
|
||||
SLS_FETCH();
|
||||
|
||||
|
||||
|
@ -293,7 +293,9 @@ void php3_log_err(char *log_message)
|
||||
{
|
||||
FILE *log_file;
|
||||
PLS_FETCH();
|
||||
#if APACHE
|
||||
SLS_FETCH();
|
||||
#endif
|
||||
|
||||
/* Try to use the specified logging location. */
|
||||
if (PG(error_log) != NULL) {
|
||||
@ -626,7 +628,6 @@ static void php_message_handler_for_zend(long message, void *data)
|
||||
case ZMSG_MEMORY_LEAK_DETECTED:
|
||||
case ZMSG_MEMORY_LEAK_REPEATED: {
|
||||
ELS_FETCH();
|
||||
SLS_FETCH();
|
||||
|
||||
if (EG(error_reporting)&E_WARNING) {
|
||||
#if ZEND_DEBUG
|
||||
@ -786,7 +787,6 @@ void php_request_shutdown(void *dummy)
|
||||
{
|
||||
CLS_FETCH();
|
||||
ELS_FETCH();
|
||||
PLS_FETCH();
|
||||
SLS_FETCH();
|
||||
|
||||
sapi_send_headers();
|
||||
@ -967,8 +967,6 @@ int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals)
|
||||
void php_module_shutdown()
|
||||
{
|
||||
int module_number=0; /* for UNREGISTER_INI_ENTRIES() */
|
||||
CLS_FETCH();
|
||||
ELS_FETCH();
|
||||
|
||||
if (!module_initialized) {
|
||||
return;
|
||||
|
@ -26,8 +26,6 @@ PHPAPI php3_request_info request_info;
|
||||
#if CGI_BINARY
|
||||
int php3_init_request_info(void *conf)
|
||||
{
|
||||
SLS_FETCH();
|
||||
|
||||
request_info.current_user = NULL;
|
||||
request_info.current_user_length = 0;
|
||||
request_info.script_name = getenv("SCRIPT_NAME");
|
||||
@ -56,8 +54,10 @@ int php3_init_request_info(void *conf)
|
||||
php3_destroy_request_info()! */
|
||||
#if DISCARD_PATH
|
||||
if (request_info.script_filename) {
|
||||
SLS_FETCH();
|
||||
SG(request_info).path_translated = estrdup(request_info.script_filename);
|
||||
} else {
|
||||
SLS_FETCH();
|
||||
SG(request_info).path_translated = NULL;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user