News for hackers. Stuff that matters.
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.
Re:PHP filter_var shenanigans by tyingq on Monday March 28, 2022 @08:20AM (#30829692)
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.

https://mina86.com/2021/the-real-arg-max-part-1/

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.