PHP 4.0 Bug #6005: setcookie always returns "1"

From: Date: Mon, 07 Aug 2000 13:07:32 +0000
Subject: PHP 4.0 Bug #6005: setcookie always returns "1"
Groups: php.dev 
Request: Send a blank email to php-dev+get-28013@lists.php.net to get a copy of this message
From: phil@BuxTech.Com Operating system: Solaris 7 & 8 PHP version: 4.0.1pl2 PHP Bug Type: Misbehaving function Bug description: setcookie always returns "1" It would seem that the php4 function setcookie() always return a value of 1. In php3, one could check the return value from setcookie to determine in the clients' browser was accepting cookies ... I can find nothing in the documentation relating to this change. We are using Apache 1.3.12 with php4 statically linked in (as we've been unable to use php4 as a DSO under Solaris because of runtime library path problems [a different issue]). I'd be happy to supply a list of modules compiled in or my php.ini file but I've duplicated this problem with no ini file and a vanilla compilation.

« previous php.dev (#28013) next »