title: PHP Warning: gzinflate(): data error in
body: <p>I pack my code using gzdeflate(), after I do addslashes() and write it to file like $var ='MY_RESULT';
  After it I try to execute it using eval(stripslashes(gzinflate($var))) and get error Warning: gzinflate(): data error in this row. If I set $var = addslashes(gzdeflate("my_original_code")) everything work nice, but I need to put deflated result in this variable. So where is my mistake? Here is my code:</p>
  
  <pre><code>&lt;?php
  $source = file_get_contents("source.txt");
  $gz = addslashes(gzdeflate($source,9));
  $a = "&lt;?php \$var='";
  $b = "'; eval(gzinflate(stripslashes(\$var)));";
  $result = $a.$gz.$b;
  
  $fp = fopen('result.php', 'wb');
  fwrite($fp, $result);
  fclose($fp);
  </code></pre>