public function testMargicQuotesGPCR() { $original = "\\ ' \""; $_COOKIE['teste2'] = $_GET['teste1'] = $original; Emulate::magicQuotesGPCR("On"); $this->assertEquals("\\\\ \\' \\\"", $_COOKIE['teste2']); Emulate::magicQuotesGPCR("Off"); $this->assertEquals($original, $_COOKIE['teste2']); }
/** * 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); }