wez Sun Oct 10 21:40:42 2004 EDT
Modified files:
/php-src/main/streams transports.c
Log:
Fix the return value check too
http://cvs.php.net/diff.php/php-src/main/streams/transports.c?r1=1.14&r2=1.15&ty=u
Index: php-src/main/streams/transports.c
diff -u php-src/main/streams/transports.c:1.14 php-src/main/streams/transports.c:1.15
--- php-src/main/streams/transports.c:1.14 Sun Oct 10 21:30:19 2004
+++ php-src/main/streams/transports.c Sun Oct 10 21:40:41 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: transports.c,v 1.14 2004/10/11 01:30:19 wez Exp $ */
+/* $Id: transports.c,v 1.15 2004/10/11 01:40:41 wez Exp $ */
#include "php.h"
#include "php_streams_int.h"
@@ -137,7 +137,7 @@
/* client */
if (flags & STREAM_XPORT_CONNECT) {
- if (0 != php_stream_xport_connect(stream, name,
namelen,
+ if (-1 == php_stream_xport_connect(stream, name,
namelen,
flags &
STREAM_XPORT_CONNECT_ASYNC ? 1 : 0,
timeout, &error_text,
error_code TSRMLS_CC)) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php