title: Unexpected $end in eval()'d code
body: <p>I hate to ask such a specific question, but I'm getting an error I can't figure out. This is in a cron job which runs on the hour. I'm creating an array of tasks, each of which has a date check which is supposed to be eval()'d.</p>
  
  <pre><code>$todo = array();
  $todo[] = array( "date('z')%3 == 0", "Task 1" );
  $todo[] = array( "date('N') == 1", "Task 2" );
  foreach( $todo as $task )
  {
      if( eval($task[0]) ) {
          echo $task[1];
      }
  }
  </code></pre>
  
  <p>For some reason the eval() line is giving me this error. <strong>Note that I am getting this error for both tasks.</strong></p>
  
  <pre><code>Parse error: syntax error, unexpected $end in /file.php(21) : eval()'d code on line 1
  </code></pre>
  
  <p>Any suggestions? I tried searching for this but couldn't find anything. Thank you.</p>