Date: 04/13/99
- Next message: Bram Heerink: "[PHP-DEV] Array of setted vars by PHP"
- Previous message: Lars Torben Wilson: "[PHP-DEV] mysql_fetch_array() indices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: zager <email protected>
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 <email protected> For help: php-dev-help <email protected>
- Next message: Bram Heerink: "[PHP-DEV] Array of setted vars by PHP"
- Previous message: Lars Torben Wilson: "[PHP-DEV] mysql_fetch_array() indices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

