Welcome! Log In Create A New Profile

Advanced

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

Anonymous User
July 13, 2011 12:16AM
On 13 Jul 2011 02h12 WEST, nginx-forum@nginx.us wrote:

> Tried it and it DOES work with php-fpm. The phpinfo() call proves
> the parent include_path is inherited from php.ini and then
> concatenated with "/my/other/include/path"!

I'm unable to reproduce that. The $ gets escaped, yes it's true but
php-fpm bombs out with:

WARNING: [pool www] child 8925 said into stderr: "PHP: syntax error, unexpected '$' in Unknown on line 1"

This is what appears in the error log using the debug level.

[debug] 26550#0: *2708 http geo started: ::ffff:127.0.0.1
[debug] 26550#0: *2708 http geo: ${include_path}:/my/other/include/path
[debug] 26550#0: *2708 http script copy: "PHP_VALUE"
[debug] 26550#0: *2708 http script var:"${include_path}:/my/other/include/path"
[debug] 26550#0: *2708 fastcgi param: "PHP_VALUE: ${include_path}:/my/other/include/path"


> However, this hack is too dirty to use in the production
> environment! Anxiously waiting for the version update so we could
> use \${var_name} or something directly within fastcgi_param
> arguments!

Can you please elaborate on how you get the $include_path "variable"
expanded?

спасибо,
--- appa

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

Валентин Бартенев July 12, 2011 11:02AM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

locojohn July 12, 2011 11:58AM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

Maxim Dounin July 12, 2011 12:20PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

Anonymous User July 12, 2011 12:38PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

Anonymous User July 12, 2011 01:02PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

Maxim Dounin July 12, 2011 01:54PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

locojohn July 12, 2011 09:11PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

Anonymous User July 13, 2011 12:16AM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

locojohn July 13, 2011 05:57AM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

António P. P. Almeida July 13, 2011 11:00AM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

locojohn July 13, 2011 12:12PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

locojohn July 13, 2011 12:30PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

António P. P. Almeida July 13, 2011 02:20PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

António P. P. Almeida July 13, 2011 02:26PM

Re: интерпретация переменных внутри PHP VALUE и PHP ADMIN VALUE для PHP-FPM

locojohn July 15, 2011 06:59PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 258
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready