Merge branch 'PHP-5.6'

* PHP-5.6:
  Handle NULL strings in sapi_cli_server_register_variable().
  Allow CLI server test scripts to specify the name of the router file.

Conflicts:
	sapi/cli/php_cli_server.c
This commit is contained in:
Adam Harvey 2015-01-06 01:29:40 +00:00
commit a607a1db1d
8 changed files with 48 additions and 10 deletions

View file

@ -588,6 +588,11 @@ static void sapi_cli_server_register_variable(zval *track_vars_array, const char
{
char *new_val = (char *)val;
size_t new_val_len;
if (NULL == val) {
return;
}
if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) {
php_register_variable_safe((char *)key, new_val, new_val_len, track_vars_array);
}