function content_55f55f40447242_10092157($_smarty_tpl) { $_smarty_tpl->properties['nocache_hash'] = '2180455f55f4037d769_80171613'; ?> title: <?php echo $_smarty_tpl->tpl_vars['title']->value; ?> <br> content: <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> <br> <?php echo myfun(); ?> <br> <?php echo date("Y-m-d"); ?> <br> <?php echo test(array('size' => "10", 'color' => "red", 'num' => "5", 'content' => "222"), $_smarty_tpl); ?> <br> <?php }
Bug# 0000697 default function parameters should accept undefined tokens for default values bad practice, but php allows this: function myfun($arg=undef, $arg2=undef) { ... } where undef isn't defined at all anywhere else. perhaps it turns it into a string? Additional Information <?php function myfun($arg = undef, $arg1 = alsoundef) { echo "{$arg}, {$arg1}\n"; } myfun();