Page 1 of 1
HttpOnly in addCookie
#4
Posted 29 October 2008 - 04:46 PM
Also, there's another [tt]addCookie[/tt] in [tt]yiilite.php[/tt], line 2069...
#5
Posted 29 October 2008 - 04:52 PM
passing an extra parameter to a function won't cause problem. That's why I skipped the php version check.
#6
Posted 29 October 2008 - 05:08 PM
Quote
passing an extra parameter to a function won't cause problem. That's why I skipped the php version check.
hmmmm...
<?php
$name = 'x';
$value = 'y';
$expire = time();
$path = '/';
$domain = 'test.com';
$secure = false;
$httponly = true;
$something = 'xyz';
setcookie($name,$value,$expire,$path,$domain,$secure,$httponly,$something);
?>
shows a warning:
[tt]Warning: setcookie() expects at most 7 parameters, 8 given in /path/to/test.php on line 3[/tt]
with my PHP 5.2.6 ([tt]error_reporting = E_ALL & ~E_NOTICE[/tt]). I don't know if PHP 5.1 just ignores an extra parameter without warning, can someone confirm?
Share this topic:
Page 1 of 1

Help














