Skip to content

Commit 47e7fef

Browse files
committed
Allow win32 stuff to build non-zts.
Fix stream crypto func (again? didn't I already commit that?)
1 parent d4ad4ac commit 47e7fef

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ PHP_MINIT_FUNCTION(basic)
10151015
#else
10161016
basic_globals_ctor(&basic_globals TSRMLS_CC);
10171017
#ifdef PHP_WIN32
1018-
php_win32_core_globals_ctor(&php_win32_core_globals TSRMLS_CC);
1018+
php_win32_core_globals_ctor(&the_php_win32_core_globals TSRMLS_CC);
10191019
#endif
10201020
#endif
10211021

ext/standard/streamsfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ PHP_FUNCTION(stream_socket_enable_crypto)
12121212

12131213
if (ZEND_NUM_ARGS() >= 3) {
12141214
if (zsessstream) {
1215-
php_stream_from_zval(sessstream, zsessstream);
1215+
php_stream_from_zval(sessstream, &zsessstream);
12161216
}
12171217

12181218
if (php_stream_xport_crypto_setup(stream, cryptokind, sessstream TSRMLS_CC) < 0) {

win32/globals.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#ifdef ZTS
2525
PHPAPI int php_win32_core_globals_id;
2626
#else
27-
php_win32_core_globals php_win32_core_globals;
27+
php_win32_core_globals the_php_win32_core_globals;
2828
#endif
2929

3030
void php_win32_core_globals_ctor(void *vg TSRMLS_DC)
@@ -39,7 +39,7 @@ PHP_RSHUTDOWN_FUNCTION(win32_core_globals)
3939
#ifdef ZTS
4040
ts_resource(php_win32_core_globals_id)
4141
#else
42-
&php_win32_core_globals
42+
&the_php_win32_core_globals
4343
#endif
4444
;
4545

win32/php_win32_globals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ typedef struct _php_win32_core_globals php_win32_core_globals;
3131
# define PW32G(v) TSRMG(php_win32_core_globals_id, php_win32_core_globals*, v)
3232
extern PHPAPI int php_win32_core_globals_id;
3333
#else
34-
# define PW32G(v) (php_win32_core_globals.v)
35-
extern PHPAPI struct _php_win32_core_globals php_win32_core_globals;
34+
# define PW32G(v) (the_php_win32_core_globals.v)
35+
extern PHPAPI struct _php_win32_core_globals the_php_win32_core_globals;
3636
#endif
3737

3838
struct _php_win32_core_globals {

0 commit comments

Comments
 (0)