ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On 13 Jul 2011 02h12 WEST, nginx-forum@xxxxxxxx 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@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.