Bug #18073: SetCookie generates error-message with empty string as parameter #3
| From: | matslin at orakel dot ntnu dot no | Date: | Sun, 30 Jun 2002 19:01:01 +0000 |
| Subject: | Bug #18073: SetCookie generates error-message with empty string as parameter #3 | ||
| Groups: | php.bugs php.doc | ||
| Request: | Send a blank email to php-bugs+get-12592@lists.php.net to get a copy of this message | ||
From: matslin@orakel.ntnu.no
Operating system: Linux
PHP version: 4.2.1
PHP Bug Type: Documentation problem
Bug description: SetCookie generates error-message with empty string as parameter #3
While the documentation says that the third parameter is optional and can
be given with a empty string, the following code does now generate a
warning:
<?php
setcookie('test', '', '');
?>
This changed somewhere between 4.1.2 and 4.2.1.
Since error-output before trying to set the cookie is somewhat problematic
(when not using output buffering) this also broke BC in a minor way.
--
Edit bug report at http://bugs.php.net/?id=18073&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18073&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18073&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18073&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18073&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18073&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18073&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18073&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18073&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18073&r=globals