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-- Phar: bug #74386: Phar::__construct(): wrong number of parameters by reflection -..

Decoded Output download

--TEST--
Phar: bug #74386: Phar::__construct(): wrong number of parameters by reflection
--EXTENSIONS--
phar
--FILE--
<?php
$r = new ReflectionMethod(Phar::class, '__construct');
var_dump($r->getNumberOfRequiredParameters());
var_dump($r->getNumberOfParameters());

$r = new ReflectionMethod(PharData::class, '__construct');
var_dump($r->getNumberOfRequiredParameters());
var_dump($r->getNumberOfParameters());
?>
--EXPECT--
int(1)
int(3)
int(1)
int(4)

Did this file decode correctly?

Original Code

--TEST--
Phar: bug #74386: Phar::__construct(): wrong number of parameters by reflection
--EXTENSIONS--
phar
--FILE--
<?php
$r = new ReflectionMethod(Phar::class, '__construct');
var_dump($r->getNumberOfRequiredParameters());
var_dump($r->getNumberOfParameters());

$r = new ReflectionMethod(PharData::class, '__construct');
var_dump($r->getNumberOfRequiredParameters());
var_dump($r->getNumberOfParameters());
?>
--EXPECT--
int(1)
int(3)
int(1)
int(4)

Function Calls

None

Variables

None

Stats

MD5 ec44aae901a35aa5510ffe0cdc6d8fde
Eval Count 0
Decode Time 101 ms