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)
6265
6265
6266
6266
PHP_FUNCTION (pg_socket_poll )
6267
6267
{
6268
- zval * z_socket ;
6269
6268
php_stream * stream ;
6270
6269
php_socket_t socket ;
6271
6270
zend_long read , write ;
6272
6271
zend_long ts = -1 ;
6273
6272
6274
6273
ZEND_PARSE_PARAMETERS_START (3 , 4 )
6275
- Z_PARAM_RESOURCE ( z_socket )
6274
+ PHP_Z_PARAM_STREAM ( stream )
6276
6275
Z_PARAM_LONG (read )
6277
6276
Z_PARAM_LONG (write )
6278
6277
Z_PARAM_OPTIONAL
6279
6278
Z_PARAM_LONG (ts )
6280
6279
ZEND_PARSE_PARAMETERS_END ();
6281
6280
6282
- php_stream_from_zval (stream , z_socket );
6283
-
6284
6281
if (php_stream_cast (stream , PHP_STREAM_AS_SOCKETD , (void * * )& socket , 0 )) {
6285
6282
zend_argument_type_error (1 , "invalid resource socket" );
6286
6283
RETURN_THROWS ();
You can’t perform that action at this time.
0 commit comments