cRAsH
|
| Posted: 06/29/2002, 7:16 PM |
|
Here's one that took me a couple of hours to figure out.
In Common.php the function looks like this:
function CCSetSession($param_name, $param_value)
{
global ${$param_name};
if(session_is_registered($param_name))
session_unregister($param_name);
${$param_name} = $param_value;
session_register($param_name);
}
Why are there curly brackets surrounding the variable $param_name?
I could NOT get the session variables to set until I removed the curly brackets,
and now they work just fine.
Can anybody explain to me WHY this is setup this way? Makes no sense to me, and caused me plenty of hair-pulling...
|
|
|
 |
Chris K.
|
| Posted: 06/30/2002, 7:54 AM |
|
Perhaps your PHP version doesn't support this syntax yet. What is your PHP bersion?
This will be fixed in the next CCS version to use global session variables arrays, but this declaration should be fixed as well.
|
|
|
 |
|