]> granicus.if.org Git - php/commitdiff
mfh
authorSterling Hughes <sterling@php.net>
Fri, 20 Dec 2002 15:45:53 +0000 (15:45 +0000)
committerSterling Hughes <sterling@php.net>
Fri, 20 Dec 2002 15:45:53 +0000 (15:45 +0000)
ext/sockets/sockets.c

index dcc3900a723e62cdd4318ac44c441401367506b0..725c4e55de86ed755bee14eb43138febf9292932 100644 (file)
@@ -747,7 +747,7 @@ PHP_FUNCTION(socket_write)
 
        ZEND_FETCH_RESOURCE(php_sock, php_socket *, &arg1, -1, le_socket_name, le_socket);
 
-       if (ZEND_NUM_ARGS() < 4) {
+       if (ZEND_NUM_ARGS() < 3) {
                length = str_len;
        }