From: [EMAIL PROTECTED] Operating system: Any PHP version: 4.2.3 PHP Bug Type: Documentation problem Bug description: setcookie and the null value for the value argument
When using the setcookie function, I noted that setting the value to NULL had the following result: The expire time argument was completely ignored, and automatically set to one year and one second ago. Also the value sent to the browser for this cookie had changed to 'deleted'. I browsed the PHP source code, and saw my suspicions confirmed, this is the correct behaviour. Could this be included in the documentation? I really like the following syntax: setcookie('name', null, null, '/'); -- Edit bug report at http://bugs.php.net/?id=19638&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19638&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19638&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19638&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19638&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19638&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19638&r=support Expected behavior: http://bugs.php.net/fix.php?id=19638&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19638&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19638&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19638&r=globals -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php