File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ PHP NEWS
12
12
. Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar
13
13
file). (Laruence)
14
14
15
+ - Standard:
16
+ . Fixed bug #76755 (setcookie does not accept "double" type for expire time).
17
+ (Laruence)
18
+
15
19
16 Aug 2018, PHP 7.3.0beta2
16
20
17
21
- Core:
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ PHP_FUNCTION(setcookie)
286
286
goto cleanup ;
287
287
}
288
288
} else {
289
- expires = Z_LVAL_P (expires_or_options );
289
+ expires = zval_get_long (expires_or_options );
290
290
}
291
291
}
292
292
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #76755 (setcookie does not accept "double" type for expire time)
3
+ --FILE--
4
+ <?php
5
+ var_dump (setcookie ('name ' , 'value ' , (real )(time () + 1296000 )));
6
+ ?>
7
+ --EXPECT--
8
+ bool(true)
You can’t perform that action at this time.
0 commit comments