Skip to content

Commit

Permalink
--enable-memory-usage-info id deprecated. use --enable-memory-limit i…
Browse files Browse the repository at this point in the history
…nstead!
  • Loading branch information
Thies C. Arntzen committed May 18, 2001
1 parent 8562b07 commit 2db3431
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
6 changes: 3 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
30 changes: 19 additions & 11 deletions build/rules_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sapi/cgi/cgi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down

0 comments on commit 2db3431

Please sign in to comment.