Forum Rally Welt
Problem with assign and PHPinfo - Druckversion

+- Forum Rally Welt (
+-- Forum: Forum ZonPHP (
+--- Forum: ZonPhp Info (
+--- Thema: Problem with assign and PHPinfo (/showthread.php?tid=34918)

Problem with assign and PHPinfo - AlbertSalerno - 30.05.2018


I have a quite strange problem with Smarty verified on three different machines with different OS, Web-Server and PHP-Version.I have a framework set up with Smarty and its works great. But when I try to insert the output of "phpinfo" into Smarty it is shown once and then my session is killed. I figured out that it has something to do with string itself.When I replace phpinfo() with something like "echo 'Hello World';" there is no problem. I broke done the output of phpinfo and figured out that the content "Array" was the problem. When I replace the string "Array" before assigning it, it works.But this cannot be the solution. Is there a way to verify/escape a string before assigning it ? I tried the modifiers but that did not help. 

Please help.

I did not find the right solution from the internet.

References: -
Explainer video quote