From 1f90dd3359df540842ba29d0b3eb087195669b36 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 10 Jul 2014 21:50:37 +0200 Subject: [PATCH] force ext_dep.js prepend to configure.js in phpize mode --- win32/build/confutils.js | 5 ----- win32/build/phpize.js.in | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 7202b4d81a1..ce844dcad36 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -1168,11 +1168,6 @@ function ADD_EXTENSION_DEP(extname, dependson, optional) var dep_present = false; var dep_shared = false; - if (MODE_PHPIZE) { - ext_deps_js = file_get_contents(PHP_DIR + "\\script\\ext_deps.js"); - eval(ext_deps_js); - } - try { dep_present = eval("PHP_" + DEP); diff --git a/win32/build/phpize.js.in b/win32/build/phpize.js.in index 4813ec0b5d6..235c0816a33 100644 --- a/win32/build/phpize.js.in +++ b/win32/build/phpize.js.in @@ -209,6 +209,8 @@ C.WriteLine("/* This file automatically generated from script/confutils.js */"); C.WriteLine("var MODE_PHPIZE = true;"); C.WriteLine("var PHP_DIR = " + '"' + PHP_DIR.replace(new RegExp('(["\\\\])', "g"), '\\$1') + '"'); +C.Write(file_get_contents(PHP_DIR + "//script//ext_deps.js")); + C.Write(file_get_contents(PHP_DIR + "/script/confutils.js")); C.Write(file_get_contents(PHP_DIR + "/script/config.phpize.js"));