Yaffs site version 1.1
[yaffs-website] / vendor / gabordemooij / redbean / p533patch.php
1 <?php
2
3 echo "Running Patch P533...";
4 echo PHP_EOL;
5
6 $code = file_get_contents('rb.php');
7 $code = str_replace('&offsetGet', 'offsetGet', $code);
8
9 $bytes = file_put_contents('rb-p533.php', $code);
10
11 if ($bytes > 0) {
12         echo 'Applied patch for PHP < 5.3.3';
13         echo PHP_EOL;
14         exit;
15 } else {
16         echo 'Somthing went wrong.';
17         echo PHP_EOL;
18         exit;
19 }