@@ -1896,7 +1896,7 @@ PHP_FUNCTION(session_set_cookie_params)
18961896 }
18971897 if (!secure_null ) {
18981898 ini_name = ZSTR_INIT_LITERAL ("session.cookie_secure" , false);
1899- result = zend_alter_ini_entry_chars (ini_name , secure ? "1" : "0" , 1 , PHP_INI_USER , PHP_INI_STAGE_RUNTIME );
1899+ result = zend_alter_ini_entry (ini_name , secure ? ZSTR_CHAR ( '1' ) : ZSTR_CHAR ( '0' ) , PHP_INI_USER , PHP_INI_STAGE_RUNTIME );
19001900 zend_string_release_ex (ini_name , false);
19011901 if (result == FAILURE ) {
19021902 RETVAL_FALSE ;
@@ -1905,7 +1905,7 @@ PHP_FUNCTION(session_set_cookie_params)
19051905 }
19061906 if (!partitioned_null ) {
19071907 ini_name = ZSTR_INIT_LITERAL ("session.cookie_partitioned" , false);
1908- result = zend_alter_ini_entry_chars (ini_name , partitioned ? "1" : "0" , 1 , PHP_INI_USER , PHP_INI_STAGE_RUNTIME );
1908+ result = zend_alter_ini_entry (ini_name , partitioned ? ZSTR_CHAR ( '1' ) : ZSTR_CHAR ( '0' ) , PHP_INI_USER , PHP_INI_STAGE_RUNTIME );
19091909 zend_string_release_ex (ini_name , false);
19101910 if (result == FAILURE ) {
19111911 RETVAL_FALSE ;
@@ -1914,7 +1914,7 @@ PHP_FUNCTION(session_set_cookie_params)
19141914 }
19151915 if (!httponly_null ) {
19161916 ini_name = ZSTR_INIT_LITERAL ("session.cookie_httponly" , false);
1917- result = zend_alter_ini_entry_chars (ini_name , httponly ? "1" : "0" , 1 , PHP_INI_USER , PHP_INI_STAGE_RUNTIME );
1917+ result = zend_alter_ini_entry (ini_name , httponly ? ZSTR_CHAR ( '1' ) : ZSTR_CHAR ( '0' ) , PHP_INI_USER , PHP_INI_STAGE_RUNTIME );
19181918 zend_string_release_ex (ini_name , false);
19191919 if (result == FAILURE ) {
19201920 RETVAL_FALSE ;
0 commit comments