]> granicus.if.org Git - php/commitdiff
Fix parse string
authorJason Greene <jason@php.net>
Fri, 15 Feb 2002 17:33:08 +0000 (17:33 +0000)
committerJason Greene <jason@php.net>
Fri, 15 Feb 2002 17:33:08 +0000 (17:33 +0000)
(Since arg6 is initialized at null this still catches the wrong param condition)

ext/sockets/sockets.c

index 4157050b62bbf34ccd60288899a161c7603d8e87..3aa754ceaef7841576c9bf78dc5a72cbf8dbb1e6 100644 (file)
@@ -1347,7 +1347,7 @@ PHP_FUNCTION(socket_recvfrom)
        int                                     retval, arg3, arg4;
        char                            *recv_buf, *address;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rzllz|z!", &arg1, &arg2, &arg3, &arg4, &arg5, &arg6) == FAILURE)
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rzllz|z", &arg1, &arg2, &arg3, &arg4, &arg5, &arg6) == FAILURE)
                return;
 
        ZEND_FETCH_RESOURCE(php_sock, php_socket *, &arg1, -1, le_socket_name, le_socket);