Skip to content

Commit

Permalink
Merge pull request #4 from costamauricio/master
Browse files Browse the repository at this point in the history
FIX: Corrigido register globals FILES
  • Loading branch information
rafaelnery committed Apr 13, 2016
2 parents 46c2668 + 83e1ae7 commit 5add277
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/DBSeller/Legacy/PHP53/Emulate.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
<?php

namespace DBSeller\Legacy\PHP53;

class Emulate {

private static $egpcs = array(
'ENV', 'GET', 'POST', 'COOKIE', 'SERVER', 'SESSION'
'ENV', 'GET', 'POST', 'COOKIE', 'SERVER', 'SESSION', 'FILES'
);

/**
Expand Down Expand Up @@ -82,7 +82,7 @@ public static function magicQuotesGPCR($directive = 'On') {
reset($_GET);
reset($_POST);
reset($_COOKIE);
reset($_REQUEST);
reset($_REQUEST);
}

/**
Expand All @@ -91,7 +91,7 @@ public static function magicQuotesGPCR($directive = 'On') {
* @link http://php.net/manual/pt_BR/function.session-register.php
*/
public static function sessionRegister(){

$args = func_get_args();
foreach ($args as $key){

Expand All @@ -100,7 +100,7 @@ public static function sessionRegister(){
}

/**
* Emula o comportamento da função session_is_registered
* Emula o comportamento da função session_is_registered
*
* @link http://php.net/manual/pt_BR/function.session-is-registered.php
* @static
Expand All @@ -114,7 +114,7 @@ public static function sessionIsRegistered($key){
* Emula o comportamento da função sesion_unregister
*
* @link http://php.net/manual/pt_BR/function.session-unregister.php
* @static
* @static
* @param mixed $key
*/
public static function sessionUnregister($key){
Expand Down

0 comments on commit 5add277

Please sign in to comment.