PHP Classes

File: vendor/gabordemooij/redbean/p533patch.php

Recommend this page to a friend!
  Classes of Adrian M   upMVC   vendor/gabordemooij/redbean/p533patch.php   Download  
File: vendor/gabordemooij/redbean/p533patch.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: upMVC
Pure PHP web development without other frameworks
Author: By
Last change:
Date: 29 days ago
Size: 338 bytes
 

Contents

Class file image Download
<?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;
}