mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-09-18 17:42:09 +00:00
Begin Refactor
This commit is contained in:
19
vendor/gabordemooij/redbean/p533patch.php
vendored
Normal file
19
vendor/gabordemooij/redbean/p533patch.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
echo "Running Patch P533...";
|
||||
echo PHP_EOL;
|
||||
|
||||
$code = file_get_contents('rb.php');
|
||||
$code = str_replace('&offsetGet', 'offsetGet', $code);
|
||||
|
||||
$bytes = file_put_contents('rb-p533.php', $code);
|
||||
|
||||
if ($bytes > 0) {
|
||||
echo 'Applied patch for PHP < 5.3.3';
|
||||
echo PHP_EOL;
|
||||
exit;
|
||||
} else {
|
||||
echo 'Somthing went wrong.';
|
||||
echo PHP_EOL;
|
||||
exit;
|
||||
}
|
Reference in New Issue
Block a user