Bug #18287 Updated: setcookie() return value not documented
| From: | philip@php.net | Date: | Tue, 16 Jul 2002 16:52:48 +0000 |
| Subject: | Bug #18287 Updated: setcookie() return value not documented | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-14327@lists.php.net to get a copy of this message | ||
ID: 18287
Updated by: philip@php.net
Reported By: drfickle@k-lug.org
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: n/a
PHP Version: 4.2.1
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-07-11 21:24:46] drfickle@k-lug.org
You are correct, it is indeed a boolean. I was just doing a print on
the return value before. Perhaps changing that and including a sentence
or two about the condition you mentioned too. Many people might assume
that the cookie wasn't sent if they get false returned.
Thanks much.
------------------------------------------------------------------------
[2002-07-11 18:31:00] philip@php.net
I get boolean TRUE on success, and boolean FALSE on failure. Of course
failure does not mean the cookie wasn't set, it means the function
failed. Like if header info was already sent.
Docs say int is returned, should it be boolean instead?
------------------------------------------------------------------------
[2002-07-11 17:26:45] drfickle@k-lug.org
The documentation for setcookie() does not specify what a successful
return value should be (0 or 1).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18287&edit=1