--- embedaddon/php/main/streams/xp_socket.c 2012/02/21 23:48:05 1.1.1.1 +++ embedaddon/php/main/streams/xp_socket.c 2012/05/29 12:34:35 1.1.1.2 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xp_socket.c,v 1.1.1.1 2012/02/21 23:48:05 misho Exp $ */ +/* $Id: xp_socket.c,v 1.1.1.2 2012/05/29 12:34:35 misho Exp $ */ #include "php.h" #include "ext/standard/file.h" @@ -400,10 +400,6 @@ static int php_sockop_set_option(php_stream *stream, i } #endif - case PHP_STREAM_OPTION_WRITE_BUFFER: - php_stream_set_chunk_size(stream, (ptrparam ? *(size_t *)ptrparam : PHP_SOCK_CHUNK_SIZE)); - return PHP_STREAM_OPTION_RETURN_OK; - default: return PHP_STREAM_OPTION_RETURN_NOTIMPL; } @@ -514,6 +510,9 @@ static inline int parse_unix_address(php_stream_xport_ * BUT, to get into this branch of code, the name is too long, * so we don't care. */ xparam->inputs.namelen = sizeof(unix_addr->sun_path) - 1; + php_error_docref(NULL TSRMLS_CC, E_NOTICE, + "socket path exceeded the maximum allowed length of %lu bytes " + "and was truncated", (unsigned long)sizeof(unix_addr->sun_path)); } memcpy(unix_addr->sun_path, xparam->inputs.name, xparam->inputs.namelen);