Is there a limit setting a php_admin_value in php-fpm?

Solution 1:

This is a php-fpm bug.

There is a hard-coded 1024 character line length limit in the ini read cycle, which can be seen here:

http://lxr.php.net/xref/PHP_5_5/sapi/fpm/fpm/fpm_conf.c#1495

So at the moment, you're kind of out of luck - because the read buffer is sizeof(char) * (1024+1) bytes and it looks for a new-line as a terminator, there's nothing you can do to make it understand a configuration directive longer than this.

I've reported a bug and plan to take a look at resolving it in the next few days.

Edit: I've now create a PR with a fix for this bug.