Date: 07/11/02
- Next message: powerlord <email protected>: "[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation"
- Previous message: James Cox: "[PHP-DOC] cvs: phpdoc /en/language types.xml"
- In reply to: drfickle <email protected>: "[PHP-DOC] Bug #18287: setcookie() return value not documented"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 18287
Updated by: drfickle <email protected>
Reported By: drfickle <email protected>
-Status: Feedback
+Status: Open
Bug Type: Documentation problem
Operating System: n/a
PHP Version: 4.2.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-07-11 18:31:00] philip <email protected>
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 <email protected>
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-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: powerlord <email protected>: "[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation"
- Previous message: James Cox: "[PHP-DOC] cvs: phpdoc /en/language types.xml"
- In reply to: drfickle <email protected>: "[PHP-DOC] Bug #18287: setcookie() return value not documented"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

