Hi there,
I'm upgrading to a new computer, with a new version of PHP (5.2.8-0.dotdeb.1), and I got a strange error with the extract() function :
foreach($all_vars as $clef=>$val) {
echo($clef."<br>");
}
echo "<br>";
extract($all_vars);
foreach(get_defined_vars() as $clef=>$val) {
echo($clef."<br>");
}
returns :
thistheme
loaded
bgcolor1
bgcolor2
bgcolor3
bgcolor4
bgcolor5
sepcolor
textcolor1
textcolor2
postnuke_theme
thename
all_vars
index
autotheme_theme
strip_head
block_display
miscellaneous
command
multipath
themepath
imgpath
language
username
module
stylesheet
logoimg
file
name
stuff
commands
output
all_vars
val
clef
thistheme
loaded
bgcolor1
bgcolor2
bgcolor3
bgcolor4
bgcolor5
sepcolor
textcolor1
textcolor2
postnuke_theme
thename
index
autotheme_theme
strip_head
block_display
As you can see, the function stop extracting variables after the block_display variable. Any idea ? Is it a bug ?
Thanks