From: mcratt at itctel dot com
Operating system: Redhat Linux 2.4.18-3
PHP version: 4.3.2
PHP Bug Type: CGI related
Bug description: setcookie() not functioning
Description:
------------
Using PHP 4.3.2 CGI:
setcookie() fails to set a cookie.
OS: Redhat Linux 2.4.18
Apache Version: 1.3.27
Configure Command => './configure' '--prefix=/usr/local'
'--with-apache=../../apache_1.3.27' '--enable-exif' '--enable-track-vars'
'--with-calendar=shared' '--enable-magic-quotes' '--enable-trans-sid'
'--enable-wddx' '--enable-ftp' '--enable-inline-optimization'
'--enable-memory-limit' '--with-gd=/usr/local' '--with-zlib'
'--enable-gd-native-tt' '--with-t1lib=/usr/local' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr' '--with-zlib-dir=/usr' '--with-ttf'
'--with-freetype-dir=/usr/local' '--with-mhash=/usr/local'
'--with-mcrypt=/usr/local' '--with-pdflib=/usr/local'
'--with-tiff-dir=/usr' '--with-jpeg-dir=/usr' '--with-zlib-dir=/usr'
'--with-openssl=/usr' '--with-curl=/usr' '--with-ldap'
Reproduce code:
---------------
#!/usr/bin/php
<?php
setcookie("name","value",0,"/",".mydomain.com");
echo "Content-type: text/html";
echo "You should now have a cookie.";
?>
Expected result:
----------------
I expect that the cookie warning feature of my web browser would alert me
to an incoming cookie.
Actual result:
--------------
No cookie alert is triggered nor is one written when setting a 'persitent'
cookie.
--
Edit bug report at http://bugs.php.net/?id=24239&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24239&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24239&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24239&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24239&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24239&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24239&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24239&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24239&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24239&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24239&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24239&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24239&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24239&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24239&r=gnused