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

Reply via email to