[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-cvs
Subject:    [PHP-CVS] =?utf-8?q?svn:_/php/php-src/_branches/PHP=5F5=5F4/ext/sockets/sockets.c_trunk/ext/sockets/
From:       Gustavo_André_dos_Santos_Lopes <cataphract () php ! net>
Date:       2011-06-28 10:27:29
Message-ID: svn-cataphract-1309256849-312558-1224410447 () svn ! php ! net
[Download RAW message or body]

cataphract                               Tue, 28 Jun 2011 10:27:29 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312558

Log:
- Fixed socket_import_stream returning NULL on some errors and FALSE on others

Changed paths:
    U   php/php-src/branches/PHP_5_4/ext/sockets/sockets.c
    U   php/php-src/trunk/ext/sockets/sockets.c

Modified: php/php-src/branches/PHP_5_4/ext/sockets/sockets.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/sockets/sockets.c	2011-06-28 09:38:55 UTC (rev 312557)
+++ php/php-src/branches/PHP_5_4/ext/sockets/sockets.c	2011-06-28 10:27:29 UTC (rev 312558)
@@ -2520,6 +2520,7 @@
 error:
 	if (retsock != NULL)
 		efree(retsock);
+	RETURN_FALSE;
 }
 /* }}} */


Modified: php/php-src/trunk/ext/sockets/sockets.c
===================================================================
--- php/php-src/trunk/ext/sockets/sockets.c	2011-06-28 09:38:55 UTC (rev 312557)
+++ php/php-src/trunk/ext/sockets/sockets.c	2011-06-28 10:27:29 UTC (rev 312558)
@@ -2520,6 +2520,7 @@
 error:
 	if (retsock != NULL)
 		efree(retsock);
+	RETURN_FALSE;
 }
 /* }}} */




-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic