mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: 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/tests/php_cli_server.inc
This commit is contained in:
commit
27ff425b78
9 changed files with 51 additions and 10 deletions
|
@ -708,6 +708,11 @@ static void sapi_cli_server_register_variable(zval *track_vars_array, const char
|
|||
{
|
||||
char *new_val = (char *)val;
|
||||
uint new_val_len;
|
||||
|
||||
if (NULL == val) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len TSRMLS_CC)) {
|
||||
php_register_variable_safe((char *)key, new_val, new_val_len, track_vars_array TSRMLS_CC);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue