Skip to content

Commit a023eb3

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents 959c84b + af3c854 commit a023eb3

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
@@ -13,6 +13,10 @@ PHP NEWS
1313
. Fixed bug #78183 (finfo_file shows wrong mime-type for .tga file).
1414
(Anatol)
1515

16+
- Openssl:
17+
. Fixed bug #78231 (Segmentation fault upon stream_socket_accept of exported
18+
socket-to-stream). (Nikita)
19+
1620
- Opcache:
1721
. Fixed #78202 (Opcache stats for cache hits are capped at 32bit NUM). (cmb)
1822

ext/openssl/xp_ssl.c

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

23842384
xparam->outputs.client = NULL;
23852385

2386-
if ((tmpzval = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "socket", "tcp_nodelay")) != NULL &&
2386+
if (PHP_STREAM_CONTEXT(stream) &&
2387+
(tmpzval = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "socket", "tcp_nodelay")) != NULL &&
23872388
zend_is_true(tmpzval)) {
23882389
nodelay = 1;
23892390
}

0 commit comments

Comments
 (0)