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-- Test recursive descent --SKIPIF-- <?php if (!extension_loaded("jsonpath")) print ..
Decoded Output download
--TEST--
Test recursive descent
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php
$data = [
[
"a" => [
"b" => "c",
],
],
[
0,
1,
],
];
$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$..");
var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught JsonPath\JsonPathException: Recursive descent operator `..` must be followed by a child selector, filter or wildcard at position 3 in %s
Stack trace:
%s
%s
%s
Did this file decode correctly?
Original Code
--TEST--
Test recursive descent
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php
$data = [
[
"a" => [
"b" => "c",
],
],
[
0,
1,
],
];
$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$..");
var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught JsonPath\JsonPathException: Recursive descent operator `..` must be followed by a child selector, filter or wildcard at position 3 in %s
Stack trace:
%s
%s
%s
Function Calls
None |
Stats
MD5 | bbf7d7176c3b4a8ce67e9e4306d8d01a |
Eval Count | 0 |
Decode Time | 117 ms |