ID:               18287
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Documentation problem
 Operating System: n/a
 PHP Version:      4.2.1
 New Comment:

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?


Previous Comments:
------------------------------------------------------------------------

[2002-07-11 17:26:45] [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

Reply via email to