Re: eval puzzle

From: Date: Fri, 18 Feb 2005 10:28:59 +0000
Subject: Re: eval puzzle
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36256@lists.php.net to get a copy of this message
> > Can you think of any $string containing valid PHP code for eval > such > that eval($string) and eval($string.";") don't do the same thing > >>toggg $string=$string.'//' > Can I try: > $string=$string."\n//"; IMHO a string that ends with \n// would not be a problem: eval("$foo=$bar; //bla"); and eval("$foo=$bar; //bla;"); would do the exact same thing, would'n they? -- Vincent

« previous php.pear.dev (#36256) next »