inside the location ~ \.php($|/) block:
location ~ \.php($|/)
set $script $uri; set $path_info ""; if ($uri ~ "^(.+\.php)(/.+)") { set $script $1; set $path_info $2; }