Bug #1312: eval() crashs after 4094 steps

From: Date: Tue, 13 Apr 1999 05:15:25 +0000
Subject: Bug #1312: eval() crashs after 4094 steps
Groups: php.dev 
Request: Send a blank email to php-dev+get-5025@lists.php.net to get a copy of this message
From: zager@post.comstar.ru Operating system: Linux PHP version: 3.0.7 PHP Bug Type: Misbehaving function Bug description: eval() crashs after 4094 steps <? set_time_limit(0); //first possible bug $s="Hello"; $ss="$s world!"; echo "1 $ss\n"; //echo as expected "Hello world!" $ss='$s world!'; //the only difference from previous //assigment is quotation marks echo "2 $ss\n"; //a bit different output "$s world!" //second bug eval() $cmd="echo '$s world!\n';"; for($i=0;1;$i++) { echo "$i:"; eval($cmd); } ?> Script output // first bug 1 Hello world! 2 $s world! //second bug with eval() 4094:Hello world! 4095:<br> <b>Fatal error</b>: Unable to initialize a new token cache in <b>bug.php3</b> on line <b>16</b><br> -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5025) next »