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 /** * Isolated HTTP sink for testing. */ final class AphrontIsolatedHTTPSink exte..

Decoded Output download

<?php

/**
 * Isolated HTTP sink for testing.
 */
final class AphrontIsolatedHTTPSink extends AphrontHTTPSink {

  private $status;
  private $headers;
  private $data;

  protected function emitHTTPStatus($code, $message = '') {
    $this->status = $code;
  }

  protected function emitHeader($name, $value) {
    $this->headers[] = array($name, $value);
  }

  protected function emitData($data) {
    $this->data .= $data;
  }

  protected function isWritable() {
    return true;
  }

  public function getEmittedHTTPStatus() {
    return $this->status;
  }

  public function getEmittedHeaders() {
    return $this->headers;
  }

  public function getEmittedData() {
    return $this->data;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * Isolated HTTP sink for testing.
 */
final class AphrontIsolatedHTTPSink extends AphrontHTTPSink {

  private $status;
  private $headers;
  private $data;

  protected function emitHTTPStatus($code, $message = '') {
    $this->status = $code;
  }

  protected function emitHeader($name, $value) {
    $this->headers[] = array($name, $value);
  }

  protected function emitData($data) {
    $this->data .= $data;
  }

  protected function isWritable() {
    return true;
  }

  public function getEmittedHTTPStatus() {
    return $this->status;
  }

  public function getEmittedHeaders() {
    return $this->headers;
  }

  public function getEmittedData() {
    return $this->data;
  }

}

Function Calls

None

Variables

None

Stats

MD5 0d1e6b0f127b9693f691a3a1053feead
Eval Count 0
Decode Time 88 ms