summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-05-13 18:48:20 +0000
committerJani Taskinen <jani@php.net>2009-05-13 18:48:20 +0000
commit1033af1cb369457cabb66afcbce51bf5d656b7a3 (patch)
tree12efe9df8c5db664d103e819156cb10f463d540c /build
parentf67e7f4947a987b7258489f45108fb02744af488 (diff)
downloadphp-git-1033af1cb369457cabb66afcbce51bf5d656b7a3.tar.gz
MFH: Fixed module loading order and made request shutdown functions also to
be loaded in reverse like all other shutdowns are.
Diffstat (limited to 'build')
-rw-r--r--build/order_by_dep.awk3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/order_by_dep.awk b/build/order_by_dep.awk
index 38128b2e1b..487d055723 100644
--- a/build/order_by_dep.awk
+++ b/build/order_by_dep.awk
@@ -79,8 +79,7 @@ END {
out_count = 0;
while (count(mods)) {
- # count down, since we need to assemble it in reverse order
- for (i = mod_count-1; i >= 0; --i) {
+ for (i = 0; i <= mod_count; i++) {
if (i in mods) {
do_deps(i);
}