Re: eval puzzle

From: Date: Sun, 20 Feb 2005 15:28:29 +0000
Subject: Re: eval puzzle
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36276@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
<?php $string = ''; $r1 = eval($string); $r2 = eval($string.";"); var_dump($r1); var_dump($r2); ?> bool(false) NULL Cipri

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