]> granicus.if.org Git - php/commitdiff
- Fixed socket_import_stream returning NULL on some errors and FALSE on others
authorGustavo André dos Santos Lopes <cataphract@php.net>
Tue, 28 Jun 2011 10:27:29 +0000 (10:27 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Tue, 28 Jun 2011 10:27:29 +0000 (10:27 +0000)
ext/sockets/sockets.c

index 456e89d087545f8eb327aa0f3e1098e336704e23..42af613a98be1b88177bf4b09939301e4772c141 100644 (file)
@@ -2520,6 +2520,7 @@ PHP_FUNCTION(socket_import_stream)
 error:
        if (retsock != NULL)
                efree(retsock);
+       RETURN_FALSE;
 }
 /* }}} */