summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS6
-rw-r--r--build/rules_common.mk30
-rw-r--r--sapi/cgi/cgi_main.c2
3 files changed, 23 insertions, 15 deletions
diff --git a/NEWS b/NEWS
index 650b8f1f5e..5c7f193d00 100644
--- a/NEWS
+++ b/NEWS
@@ -20,9 +20,9 @@ PHP 4.0 NEWS
members $obj->Release() and $obj->AddRef() to gain more control over the used
COM components. (phanto)
- Added an additional parameter to dotnet_load to specify the codepage (phanto)
-- Added --enable-memory-usage-info. This creates a new Apache 1.x logging
- directive "{mod_php_memory_usage}n" which will log the peak amount of memory
- used by the script. (Thies)
+- Added peak memory logging. Use --enable-memory-limit to create a new Apache
+ 1.x logging directive "{mod_php_memory_usage}n" which will log the peak
+ amount of memory used by the script. (Thies)
- Made fstat() and stat() provide identical output by returning a numerical and
string indexed array. (Jason)
- Fixed memory leak upon re-registering constants. (Sascha, Zend Engine)
diff --git a/build/rules_common.mk b/build/rules_common.mk
index bab3a16343..9072a71ed0 100644
--- a/build/rules_common.mk
+++ b/build/rules_common.mk
@@ -23,10 +23,10 @@ COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS)
COMPILE = $(CC) $(COMMON_FLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
CXX_COMPILE = $(CXX) $(COMMON_FLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS)
-SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) -prefer-pic $(EXTRA_CFLAGS) -c $< && touch $@
-CXX_SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CXX) $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) -prefer-pic $(EXTRA_CXXFLAGS) -c $< && touch $@
+SHARED_COMPILE = $(SHARED_LIBTOOL) --silent --mode=compile $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) -prefer-pic $(EXTRA_CFLAGS) -c $< && touch $@
+CXX_SHARED_COMPILE = $(SHARED_LIBTOOL) --silent --mode=compile $(CXX) $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) -prefer-pic $(EXTRA_CXXFLAGS) -c $< && touch $@
-LINK = $(LIBTOOL) --mode=link $(COMPILE) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --silent --mode=link $(COMPILE) $(LDFLAGS) -o $@
mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
INSTALL = $(top_srcdir)/build/shtool install -c
@@ -42,28 +42,36 @@ CXX_SUFFIX = .cpp
.SUFFIXES: .slo .c $(CXX_SUFFIX) .lo .o .s .y .l
.c.o:
- $(COMPILE) -c $<
+ @echo Compiling $<
+ @$(COMPILE) -c $<
$(CXX_SUFFIX).o:
- $(CXX_COMPILE) -c $<
+ @echo Compiling $<
+ @$(CXX_COMPILE) -c $<
.s.o:
- $(COMPILE) -c $<
+ @echo Compiling $<
+ @$(COMPILE) -c $<
.c.lo:
- $(PHP_COMPILE)
+ @echo Compiling $<
+ @$(PHP_COMPILE)
$(CXX_SUFFIX).lo:
- $(CXX_PHP_COMPILE)
+ @echo Compiling $<
+ @$(CXX_PHP_COMPILE)
.s.lo:
- $(PHP_COMPILE)
+ @echo Compiling $<
+ @$(PHP_COMPILE)
.c.slo:
- $(SHARED_COMPILE)
+ @echo Compiling $<
+ @$(SHARED_COMPILE)
$(CXX_SUFFIX).slo:
- $(CXX_SHARED_COMPILE)
+ @echo Compiling $<
+ @$(CXX_SHARED_COMPILE)
.y.c:
$(YACC) $(YFLAGS) $< && mv y.tab.c $*.c
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index dc1cfe9191..85215a2ec8 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -749,6 +749,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
}
php_request_shutdown((void *) 0);
+
php_module_shutdown();
STR_FREE(SG(request_info).path_translated);
@@ -759,7 +760,6 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
#ifdef ZTS
tsrm_shutdown();
#endif
-
return exit_status;
}