Skip to content

Wrong results when an element in an array, has a function name #24

@mustafaeida

Description

@mustafaeida

For example :

$sandbox = new PHPSandbox;
function test ($values)
{
return $values;
}
$sandbox->whitelistFunc(['test','dd']);
$sandbox->allow_casting = true;

$result = $sandbox->execute(function(){
return test(['required','date', 'copy']);
});

print_r(
$result ,
);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions