Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php include "common.inc"; logToFile("Testing overload of method __get: "); class c { ..

Decoded Output download

<?php 
include "common.inc"; 
logToFile("Testing overload of method __get: "); 
class c { 
  public $p ; 
  public function __get($name) { return "__get of $name" ; } 
} 
 
$c = new c ; 
myecho($c->p . "
");    // declared public member value is empty 
$c->p = 5 ; 
myecho($c->p . "
");     // declared public member value is 5 
unset($c->p) ; 
myecho($c->p . "
");     // after unset, value is "__get of p" 
?>  

Did this file decode correctly?

Original Code

<?php
include "common.inc";
logToFile("Testing overload of method __get: ");
class c {
  public $p ;
  public function __get($name) { return "__get of $name" ; }
}

$c = new c ;
myecho($c->p . "\r\n");    // declared public member value is empty
$c->p = 5 ;
myecho($c->p . "\r\n");     // declared public member value is 5
unset($c->p) ;
myecho($c->p . "\r\n");     // after unset, value is "__get of p"
?> 

Function Calls

None

Variables

None

Stats

MD5 3f23d38b06aea05824a8faaacd25c349
Eval Count 0
Decode Time 76 ms