mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Merge branch 'PHP-5.5' of https://git.php.net/repository/php-src into PHP-5.5
This commit is contained in:
commit
ba1cf321f3
@ -50,7 +50,11 @@ static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i;
|
||||
int st = snprintf(s, len, "%lld", i); \
|
||||
s[st] = '\0'; \
|
||||
} while (0);
|
||||
#ifdef HAVE_ATOLL
|
||||
# define DATE_A64I(i, s) i = atoll(s)
|
||||
#else
|
||||
# define DATE_A64I(i, s) i = strtoll(s, NULL, 10)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* {{{ arginfo */
|
||||
|
@ -34,5 +34,5 @@ _VC_MANIFEST_EMBED_EXE= if exist $@.manifest $(MT) -nologo -manifest $@.manifest
|
||||
_VC_MANIFEST_EMBED_DLL= if exist $@.manifest $(MT) -nologo -manifest $@.manifest -outputresource:$@;2
|
||||
!endif
|
||||
|
||||
install: build-headers
|
||||
install: build-headers build-bins
|
||||
|
||||
|
@ -1201,9 +1201,14 @@ function ADD_EXTENSION_DEP(extname, dependson, optional)
|
||||
ERROR("static " + extname + " cannot depend on shared " + dependson);
|
||||
}
|
||||
|
||||
ADD_FLAG("LDFLAGS_" + EXT, "/libpath:$(BUILD_DIR)");
|
||||
ADD_FLAG("LIBS_" + EXT, "php_" + dependson + ".lib");
|
||||
ADD_FLAG("DEPS_" + EXT, "$(BUILD_DIR)\\php_" + dependson + ".lib");
|
||||
if (MODE_PHPIZE) {
|
||||
ADD_FLAG("LDFLAGS_" + EXT, "/libpath:$(BUILD_DIR_DEV)\\lib");
|
||||
ADD_FLAG("DEPS_" + EXT, "$(BUILD_DIR_DEV)\\lib\\php_" + dependson + ".lib");
|
||||
} else {
|
||||
ADD_FLAG("LDFLAGS_" + EXT, "/libpath:$(BUILD_DIR)");
|
||||
ADD_FLAG("DEPS_" + EXT, "$(BUILD_DIR)\\php_" + dependson + ".lib");
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@ -1354,6 +1359,12 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir)
|
||||
|
||||
DEFINE('CFLAGS_' + EXT + '_OBJ', '$(CFLAGS_PHP) $(CFLAGS_' + EXT + ')');
|
||||
}
|
||||
if (MODE_PHPIZE && FSO.FileExists(PHP_DIR + "/include/main/config.pickle.h")) {
|
||||
cflags = "/FI main/config.pickle.h " + cflags;
|
||||
}
|
||||
if (MODE_PHPIZE && FSO.FileExists(PHP_DIR + "/include/main/config.pickle.h")) {
|
||||
cflags = "/FI main/config.pickle.h " + cflags;
|
||||
}
|
||||
ADD_FLAG("CFLAGS_" + EXT, cflags);
|
||||
|
||||
if (PHP_DSP != "no") {
|
||||
@ -1952,6 +1963,16 @@ function generate_makefile()
|
||||
}
|
||||
}
|
||||
MF.WriteLine(" @for %D in ($(INSTALL_HEADERS_DIR)) do @copy %D*.h $(BUILD_DIR_DEV)\\include\\%D /y >nul");
|
||||
if (MODE_PHPIZE) {
|
||||
MF.WriteBlankLines(1);
|
||||
MF.WriteLine("build-bins:");
|
||||
for (var i in extensions_enabled) {
|
||||
var lib = "php_" + extensions_enabled[i][0] + ".lib";
|
||||
var dll = "php_" + extensions_enabled[i][0] + ".dll";
|
||||
MF.WriteLine(" @copy $(BUILD_DIR)\\" + lib + " $(BUILD_DIR_DEV)\\lib\\" + lib);
|
||||
//MF.WriteLine(" @copy $(BUILD_DIR)\\" + dll + " $(PHP_PREFIX)\\" + dll);
|
||||
}
|
||||
}
|
||||
TF.Close();
|
||||
|
||||
MF.WriteBlankLines(2);
|
||||
|
@ -208,8 +208,12 @@ STDOUT.WriteLine(PHP_DIR);
|
||||
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.WriteLine("var PHP_PREFIX = " + '"' + PHP_PREFIX.replace(new RegExp('(["\\\\])', "g"), '\\$1') + '"');
|
||||
|
||||
C.Write(file_get_contents(PHP_DIR + "//script//ext_deps.js"));
|
||||
if (FSO.FileExists(PHP_DIR + "/script/ext_pickle.js")) {
|
||||
C.Write(file_get_contents(PHP_DIR + "//script//ext_pickle.js"));
|
||||
}
|
||||
|
||||
C.Write(file_get_contents(PHP_DIR + "/script/confutils.js"));
|
||||
C.Write(file_get_contents(PHP_DIR + "/script/config.phpize.js"));
|
||||
|
Loading…
Reference in New Issue
Block a user