export go_register_server_variables
(threadIndex C.uintptr_t, trackVarsArray *C.zval)
| 182 | |
| 183 | //export go_register_server_variables |
| 184 | func go_register_server_variables(threadIndex C.uintptr_t, trackVarsArray *C.zval) { |
| 185 | thread := phpThreads[threadIndex] |
| 186 | fc := thread.frankenPHPContext() |
| 187 | |
| 188 | if fc.request != nil { |
| 189 | addKnownVariablesToServer(fc, trackVarsArray) |
| 190 | addHeadersToServer(thread.context(), fc.request, trackVarsArray) |
| 191 | } |
| 192 | |
| 193 | // The Prepared Environment is registered last and can overwrite any previous values |
| 194 | addPreparedEnvToServer(fc, trackVarsArray) |
| 195 | } |
| 196 | |
| 197 | // splitCgiPath splits the request path into SCRIPT_NAME, SCRIPT_FILENAME, PATH_INFO, DOCUMENT_URI |
| 198 | func splitCgiPath(fc *frankenPHPContext) { |
nothing calls this directly
no test coverage detected