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 #81255: Memory leak in PHPUnit with functional JIT --EXTENSIONS-- opcache --I..
Decoded Output download
--TEST--
Bug #81255: Memory leak in PHPUnit with functional JIT
--EXTENSIONS--
opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=1M
opcache.jit=function
--FILE--
<?php
eval('class B {}');
class A extends B {
private ?string $x = null;
public function foo($a) {
if (!($this->x = str_repeat($a, 5))) {
throw new Exception('ops');
}
var_dump($this->x);
$this->x = null;
}
}
$a = new A;
$a->foo('a');
$a->foo('b');
?>
--EXPECT--
string(5) "aaaaa"
string(5) "bbbbb"
Did this file decode correctly?
Original Code
--TEST--
Bug #81255: Memory leak in PHPUnit with functional JIT
--EXTENSIONS--
opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=1M
opcache.jit=function
--FILE--
<?php
eval('class B {}');
class A extends B {
private ?string $x = null;
public function foo($a) {
if (!($this->x = str_repeat($a, 5))) {
throw new Exception('ops');
}
var_dump($this->x);
$this->x = null;
}
}
$a = new A;
$a->foo('a');
$a->foo('b');
?>
--EXPECT--
string(5) "aaaaa"
string(5) "bbbbb"
Function Calls
None |
Stats
MD5 | 970209efa65c364c81ef6c79173fea41 |
Eval Count | 0 |
Decode Time | 84 ms |