Пример #1
0
 public function testMargicQuotesGPCR()
 {
     $original = "\\ '  \"";
     $_COOKIE['teste2'] = $_GET['teste1'] = $original;
     Emulate::magicQuotesGPCR("On");
     $this->assertEquals("\\\\ \\'  \\\"", $_COOKIE['teste2']);
     Emulate::magicQuotesGPCR("Off");
     $this->assertEquals($original, $_COOKIE['teste2']);
 }
Пример #2
0
 /**
  * Find out whether a global variable is registered in a session
  *
  * @param  String  $key Name
  * @return boolean
  */
 function session_is_registered($key)
 {
     return \DBSeller\Legacy\PHP53\Emulate::sessionIsRegistered($key);
 }