Browse Source

Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4

PHP-5.4.16
Pierre Joye 13 years ago
parent
commit
b142e8825f
  1. 2
      NEWS
  2. 6
      ext/sockets/sockets.c
  3. 2
      main/main.c

2
NEWS

@ -4,6 +4,8 @@ PHP NEWS
- Core:
. Fixed bug #64729 (compilation failure on x32). (Gustavo)
. Fixed bug #64853 (Use of no longer available ini directives causes crash on
TS build). (Anatol)
- Fileinfo:
. Fixed bug #64830 (mimetype detection segfaults on mp3 file). (Anatol)

6
ext/sockets/sockets.c

@ -1822,8 +1822,8 @@ PHP_FUNCTION(socket_recvfrom)
retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen);
if (retval < 0) {
efree(recv_buf);
PHP_SOCKET_ERROR(php_sock, "unable to recvfrom", errno);
efree(recv_buf);
RETURN_FALSE;
}
@ -1847,8 +1847,8 @@ PHP_FUNCTION(socket_recvfrom)
retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen);
if (retval < 0) {
efree(recv_buf);
PHP_SOCKET_ERROR(php_sock, "unable to recvfrom", errno);
efree(recv_buf);
RETURN_FALSE;
}
@ -1876,8 +1876,8 @@ PHP_FUNCTION(socket_recvfrom)
retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&sin6, (socklen_t *)&slen);
if (retval < 0) {
efree(recv_buf);
PHP_SOCKET_ERROR(php_sock, "unable to recvfrom", errno);
efree(recv_buf);
RETURN_FALSE;
}

2
main/main.c

@ -2070,6 +2070,8 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
EG(exception_class) = NULL;
PG(disable_functions) = NULL;
PG(disable_classes) = NULL;
EG(exception) = NULL;
EG(objects_store).object_buckets = NULL;
#if HAVE_SETLOCALE
setlocale(LC_CTYPE, "");

Loading…
Cancel
Save