#35810 [Bgs]: setcookie not replacing variables
ID: 35810
User updated by: tkojima at able dot org
Reported By: tkojima at able dot org
Status: Bogus
Bug Type: *General Issues
Operating System: LINUX
PHP Version: 5.1.1
New Comment:
"RTFM" is not a professional way to reply to something like this.
It stands for Read the F*#(ing Manual, or at least implies that. I
don't know if you meant it that way or not, but that's how it came
across.
Previous Comments:
------------------------------------------------------------------------
[2005-12-27 01:30:44] tony2001@php.net
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.
------------------------------------------------------------------------
[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)