@@ -2089,7 +2089,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_stream_set_blocking, 0)
2089
2089
ZEND_END_ARG_INFO ()
2090
2090
2091
2091
#if HAVE_SYS_TIME_H || defined(PHP_WIN32 )
2092
- ZEND_BEGIN_ARG_INFO (arginfo_stream_set_timeout , 0 )
2092
+ ZEND_BEGIN_ARG_INFO_EX (arginfo_stream_set_timeout , 0 , 0 , 2 )
2093
2093
ZEND_ARG_INFO (0 , stream )
2094
2094
ZEND_ARG_INFO (0 , seconds )
2095
2095
ZEND_ARG_INFO (0 , microseconds )
@@ -5509,22 +5509,22 @@ PHP_FUNCTION(connection_status)
5509
5509
}
5510
5510
/* }}} */
5511
5511
5512
- /* {{{ proto int ignore_user_abort([string value])
5512
+ /* {{{ proto int ignore_user_abort([bool value])
5513
5513
Set whether we want to ignore a user abort event or not */
5514
5514
PHP_FUNCTION (ignore_user_abort )
5515
5515
{
5516
- zend_string * arg = NULL ;
5516
+ zend_bool arg = 0 ;
5517
5517
int old_setting ;
5518
5518
5519
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "|S " , & arg ) == FAILURE ) {
5519
+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "|b " , & arg ) == FAILURE ) {
5520
5520
return ;
5521
5521
}
5522
5522
5523
5523
old_setting = PG (ignore_user_abort );
5524
5524
5525
5525
if (arg ) {
5526
5526
zend_string * key = zend_string_init ("ignore_user_abort" , sizeof ("ignore_user_abort" ), 0 );
5527
- zend_alter_ini_entry_ex (key , arg , PHP_INI_USER , PHP_INI_STAGE_RUNTIME , 0 );
5527
+ zend_alter_ini_entry_chars (key , arg ? "1" : "0" , 1 , PHP_INI_USER , PHP_INI_STAGE_RUNTIME );
5528
5528
zend_string_release (key );
5529
5529
}
5530
5530
0 commit comments