Re:PHP filter_var shenanigans
by bawolff on Monday March 28, 2022 @05:29AM
(#30828782)
I also sort of wonder what happens if you try and put > 4gb on the commandline. Surely there is a limit for max size of commandline arguments.
[ Parent
| on HN ]
For Linux, it's ARG_MAX, so
$ getconf ARG_MAX
2097152
It's driven by some formula related to max stack size (ulimit -Ss), but capped at 6 MiB.
Re:PHP filter_var shenanigans
by spacemanmatt on Monday March 28, 2022 @08:17AM
(#30829664)
From vague experience, the CLI limits you to a few kilobytes.