diff options
| author | Ben Fuhrmannek | 2014-11-22 16:18:35 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2014-11-22 16:18:35 +0100 |
| commit | b90ef35f1a9a5b3b5ced336d945ca35c235f2494 (patch) | |
| tree | 67aac4cc6ae28f6a7120556ba7fba59118627e02 | |
| parent | a69c64b2bc5756b14605ad39ffad69d09c0d578c (diff) | |
win32 fix from NewEraCracker
| -rw-r--r-- | config.w32 | 6 | ||||
| -rw-r--r-- | execute.c | 2 |
2 files changed, 7 insertions, 1 deletions
| @@ -5,4 +5,10 @@ ARG_ENABLE("suhosin", "whether to enable suhosin support", "yes"); | |||
| 5 | 5 | ||
| 6 | if (PHP_SUHOSIN == "yes") { | 6 | if (PHP_SUHOSIN == "yes") { |
| 7 | EXTENSION("suhosin", "suhosin.c sha256.c memory_limit.c treat_data.c ifilter.c post_handler.c ufilter.c rfc1867.c rfc1867_new.c log.c header.c execute.c ex_imp.c session.c aes.c crypt.c"); | 7 | EXTENSION("suhosin", "suhosin.c sha256.c memory_limit.c treat_data.c ifilter.c post_handler.c ufilter.c rfc1867.c rfc1867_new.c log.c header.c execute.c ex_imp.c session.c aes.c crypt.c"); |
| 8 | ARG_ENABLE("suhosin-experimental", "Enable experimental suhosin features", "no"); | ||
| 9 | |||
| 10 | if (PHP_SUHOSIN_EXPERIMENTAL != "no") { | ||
| 11 | ADD_FLAG("CFLAGS_SUHOSIN", "/D SUHOSIN_EXPERIMENTAL"); | ||
| 12 | AC_DEFINE("SUHOSIN_EXPERIMENTAL", 1, "Whether to enable experimental suhosin features"); | ||
| 13 | } | ||
| 8 | } | 14 | } |
| @@ -1386,7 +1386,7 @@ static void suhosin_gen_entropy(php_uint32 *entropybuf TSRMLS_DC) | |||
| 1386 | } | 1386 | } |
| 1387 | #else | 1387 | #else |
| 1388 | /* we have to live with the possibility that this call fails */ | 1388 | /* we have to live with the possibility that this call fails */ |
| 1389 | php_win32_get_random_bytes(rbuf, 8 * sizeof(php_uint32)); | 1389 | php_win32_get_random_bytes((unsigned char*)&seedbuf[6], 8 * sizeof(php_uint32)); |
| 1390 | #endif | 1390 | #endif |
| 1391 | 1391 | ||
| 1392 | suhosin_SHA256Init(&context); | 1392 | suhosin_SHA256Init(&context); |
