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

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #68412 (Infinite recursion with __call can make the program crash/segfault) -..

Decoded Output download

--TEST--
Bug #68412 (Infinite recursion with __call can make the program crash/segfault)
--SKIPIF--
<?php
if (getenv("USE_ZEND_ALLOC") !== "1") {
    die("skip Need Zend MM enabled");
}
?>
--FILE--
<?php
class C {
  public function __call($x, $y) {
    global $z;
    $z->bar();
  }
}
$z = new C;
function main() {
  global $z;
  $z->foo();
}
main();
?>
--EXPECTF--
Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %sbug68412.php on line %d

Did this file decode correctly?

Original Code

--TEST--
Bug #68412 (Infinite recursion with __call can make the program crash/segfault)
--SKIPIF--
<?php
if (getenv("USE_ZEND_ALLOC") !== "1") {
    die("skip Need Zend MM enabled");
}
?>
--FILE--
<?php
class C {
  public function __call($x, $y) {
    global $z;
    $z->bar();
  }
}
$z = new C;
function main() {
  global $z;
  $z->foo();
}
main();
?>
--EXPECTF--
Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %sbug68412.php on line %d

Function Calls

getenv 1

Variables

None

Stats

MD5 37e9c5e51de66644291bafb5de3185cf
Eval Count 0
Decode Time 102 ms