php-src/win32
Christoph M. Becker 3e33e1e86d Check linker compatibility directly from HMODULE
Checking the linker compatibility with extranous `ImageLoad()` calls is
possible, but unnecessary, since the modules are either already loaded
or loaded shortly afterwards, so that we can get the required
information directly from the module handles.  And actually, doing
`ImageLoad()` as well as `LoadLibrary()` leaves a tiny room for a race
condition, because both functions will lookup the module in the search
path, so there is no *guarantee* that both are dealing with the same
module.  Dropping the `ImageLoad()` calls also has the advantage to no
longer face the issue reported in bug #79557.  A very minor additional
advantage is that we no longer have to link against Imagehlp.dll.

Furthermore, there is no need to check for CRT compatibility multiple
times, so we can simplify the signature of `php_win32_crt_compatible`,
and at the same time clean up main.c a bit.

These changes require to change the signature of the exported
`php_win32_image_compatible` and `php_win32_crt_compatible` functions,
which now expect a `HMODULE` and nothing, respectively, instead of the
module name.
2020-09-21 16:25:31 +02:00
..
build Check linker compatibility directly from HMODULE 2020-09-21 16:25:31 +02:00
codepage.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
codepage.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
console.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
console.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
cp_enc_map_gen.c Remove local variables 2019-02-03 21:03:00 +01:00
cp_enc_map.c Trailing whitespaces 2018-01-03 14:38:00 +01:00
dllmain.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
fnmatch.c Remove local variables 2019-02-03 21:03:00 +01:00
fnmatch.h Remove local variables 2019-02-03 21:03:00 +01:00
ftok.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
getrusage.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
getrusage.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
glob.c Remove local variables 2019-02-03 21:03:00 +01:00
glob.h Remove local variables 2019-02-03 21:03:00 +01:00
globals.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
grp.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
inet.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
inet.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
ioutil.c Remove unused variable 2020-05-14 17:55:31 +02:00
ioutil.h Merge branch 'PHP-7.4' 2020-07-16 09:18:45 +02:00
ipc.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
nice.c Fix #78880: Yet another batch of spelling errors 2020-01-16 12:04:00 +01:00
nice.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
param.h Remove local variables 2019-02-03 21:03:00 +01:00
php_registry.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_win32_globals.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
readdir.c Fix macro redifinition warnings in debug builds 2020-06-29 19:11:22 +02:00
readdir.h Fix #36365: scandir duplicates file name at every 65535th file 2020-04-24 09:47:56 +02:00
registry.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
select.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
select.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
sendmail.c Fix warnings of strict-prototypes 2020-07-23 00:59:00 +08:00
sendmail.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
signal.c Drop various unused macros/APIs 2020-08-26 12:59:43 +02:00
signal.h Fix TS build, ref #77377 2019-02-08 18:42:48 -08:00
sockets.c Support socketpairs in proc_open() 2020-07-14 10:35:45 +02:00
sockets.h Support socketpairs in proc_open() 2020-07-14 10:35:45 +02:00
syslog.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
time.c Remove local variables 2019-02-03 21:03:00 +01:00
time.h Remove local variables 2019-02-03 21:03:00 +01:00
unistd.h Remove local variables 2019-02-03 21:03:00 +01:00
winutil.c Check linker compatibility directly from HMODULE 2020-09-21 16:25:31 +02:00
winutil.h Check linker compatibility directly from HMODULE 2020-09-21 16:25:31 +02:00
wsyslog.c Merge branch 'PHP-7.3' into PHP-7.4 2019-07-11 13:11:08 +02:00