#35810 [Opn->Bgs]: setcookie not replacing variables
ID: 35810
Updated by: tony2001@php.net
Reported By: tkojima at able dot org
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: LINUX
PHP Version: 5.1.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
RTFM about the difference between double and single quotes.
Previous Comments:
------------------------------------------------------------------------
[2005-12-27 01:20:35] tkojima at able dot org
Description:
------------
Set cookie does not replace variables inside name.
Reproduce code:
---------------
<?php
$variable = "1"
setcookie('dynamic_{$variable}',true,time()+60*60*24*3);
?>
Expected result:
----------------
the cookie to be named "dynamic_1" instead of
"dynamic_{$variable}"
Actual result:
--------------
the cookie was set as "dynamic_{$variable}"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35810&edit=1
Thread (3 messages)