summaryrefslogtreecommitdiff
path: root/win32/dllmain.c
Commit message (Collapse)AuthorAgeFilesLines
* Trailing whitespacesGabriel Caruso2018-01-031-4/+4
| | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* year++Xinchen Hui2018-01-021-1/+1
|
* vim folds and modelinesAnatol Belski2017-07-041-0/+8
|
* Revert "move winsock specific stuff into dllmain"Anatol Belski2017-02-111-11/+2
| | | | | | This reverts commit d94c2c796a1b032d53b382681f8413cc3d02d2da. WSA functions are documented explicitly as unsafe for dllmain
* move winsock specific stuff into dllmainAnatol Belski2017-02-111-2/+11
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* We do not need to check the return value of php_win32_init_gettimeofday() ↵Kalle Sommer Nielsen2016-08-111-5/+13
| | | | anymore, as the symbol is always going to be available to us
* Fixed bug #72625 realpath() fails on non canonical long pathAnatol Belski2016-07-231-0/+7
|
* Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
|
* add error messageAnatol Belski2015-06-081-0/+4
|
* introduced DllMain for the main php DLLAnatol Belski2015-06-021-0/+70
The particular need on this is because of the current situation with determining the background functionality for the gettimeofday. DllMain allows to initialize stuff before the DLL can be actually used. Thus, we use different time API on win7 and win8 and later, so the function pointer needs to be initialized before anything in the DLL could even demand it. The change also opens the door for the further optimizations, as now we're able to do the very basic initializations for the whole DLL before it could ever start to live. Fe on this way the TLS initialization could be done, when utilizing the DLL_THREAD_ATTACH/DETACH case. Whether it's really usable in portable way should be synced with other platforms. Be aware that it's dangerous as it possibly causes dead locks. So to use with care. One willing to add items to DllMain should better read the documentation twice and even then try to defer the necessary action.