File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -6265,22 +6265,19 @@ PHP_FUNCTION(pg_put_copy_end)
62656265
62666266PHP_FUNCTION (pg_socket_poll )
62676267{
6268- zval * z_socket ;
62696268 php_stream * stream ;
62706269 php_socket_t socket ;
62716270 zend_long read , write ;
62726271 zend_long ts = -1 ;
62736272
62746273 ZEND_PARSE_PARAMETERS_START (3 , 4 )
6275- Z_PARAM_RESOURCE ( z_socket )
6274+ PHP_Z_PARAM_STREAM ( stream )
62766275 Z_PARAM_LONG (read )
62776276 Z_PARAM_LONG (write )
62786277 Z_PARAM_OPTIONAL
62796278 Z_PARAM_LONG (ts )
62806279 ZEND_PARSE_PARAMETERS_END ();
62816280
6282- php_stream_from_zval (stream , z_socket );
6283-
62846281 if (php_stream_cast (stream , PHP_STREAM_AS_SOCKETD , (void * * )& socket , 0 )) {
62856282 zend_argument_type_error (1 , "invalid resource socket" );
62866283 RETURN_THROWS ();
You can’t perform that action at this time.
0 commit comments