From: Gustavo André dos Santos Lopes Date: Tue, 28 Jun 2011 10:27:29 +0000 (+0000) Subject: - Fixed socket_import_stream returning NULL on some errors and FALSE on others X-Git-Tag: php-5.4.0alpha2~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f99938c6ee9926a8d00be5ba098db65bb95ee30c;p=php - Fixed socket_import_stream returning NULL on some errors and FALSE on others --- diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 456e89d087..42af613a98 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -2520,6 +2520,7 @@ PHP_FUNCTION(socket_import_stream) error: if (retsock != NULL) efree(retsock); + RETURN_FALSE; } /* }}} */