forked from crazyxman/simdjson_php
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
decoder: Fix validating with different depth
- Loading branch information
1 parent
9a0f6ab
commit 2838544
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--TEST-- | ||
simdjson_is_valid depth | ||
--FILE-- | ||
<?php | ||
var_dump(simdjson_is_valid(str_repeat('[', 200000) . str_repeat(']', 199999), 5000)); | ||
?> | ||
--EXPECT-- | ||
bool(false) |