We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a44c78 commit c2b0be5Copy full SHA for c2b0be5
NEWS
@@ -31,6 +31,9 @@ PHP NEWS
31
. Fix undefined behaviour in phpdbg_load_module_or_extension(). (nielsdos)
32
. Fix NULL pointer dereference in phpdbg_create_conditional_breal(). (nielsdos)
33
34
+- Posix:
35
+ . Fix memory leak in posix_ttyname() (girgias)
36
+
37
- TSRM:
38
. Fixed Windows shmget() wrt. IPC_PRIVATE. (Tyson Andre)
39
ext/posix/posix.c
@@ -547,15 +547,15 @@ PHP_FUNCTION(posix_ttyname)
547
efree(p);
548
RETURN_FALSE;
549
}
550
- RETURN_STRING(p);
+ RETVAL_STRING(p);
551
552
#else
553
if (NULL == (p = ttyname(fd))) {
554
POSIX_G(last_error) = errno;
555
556
557
-#endif
558
RETURN_STRING(p);
+#endif
559
560
/* }}} */
561
0 commit comments