Skip to content

Commit af3c854

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 4892bbc + 0e48e35 commit af3c854

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ PHP NEWS
99
. Fixed #69044 (discrepency between time and microtime). (krakjoe)
1010
. Updated timelib to 2018.02. (Derick)
1111

12+
- Openssl:
13+
. Fixed bug #78231 (Segmentation fault upon stream_socket_accept of exported
14+
socket-to-stream). (Nikita)
15+
1216
- Opcache:
1317
. Fixed bug #78189 (file cache strips last character of uname hash). (cmb)
1418
. Fixed bug #78202 (Opcache stats for cache hits are capped at 32bit NUM).

ext/openssl/xp_ssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,8 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
23222322

23232323
xparam->outputs.client = NULL;
23242324

2325-
if ((tmpzval = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "socket", "tcp_nodelay")) != NULL &&
2325+
if (PHP_STREAM_CONTEXT(stream) &&
2326+
(tmpzval = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "socket", "tcp_nodelay")) != NULL &&
23262327
zend_is_true(tmpzval)) {
23272328
nodelay = 1;
23282329
}

0 commit comments

Comments
 (0)