mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
add comment (the code is not that obvious indeed)
This commit is contained in:
parent
11a1fa5b92
commit
e593d7d611
1 changed files with 4 additions and 0 deletions
|
@ -141,6 +141,8 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_arra
|
||||||
zend_hash_del(ht, var, var_len + 1);
|
zend_hash_del(ht, var, var_len + 1);
|
||||||
zval_dtor(val);
|
zval_dtor(val);
|
||||||
|
|
||||||
|
/* do not output the error message to the screen,
|
||||||
|
this helps us to to avoid "information disclosure" */
|
||||||
if (!PG(display_errors)) {
|
if (!PG(display_errors)) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variable nesting level exceeded %ld. To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_level));
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variable nesting level exceeded %ld. To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_level));
|
||||||
}
|
}
|
||||||
|
@ -293,6 +295,8 @@ PHPAPI void php_u_register_variable_ex(UChar *var, zval *val, zval *track_vars_a
|
||||||
zend_u_hash_del(ht, IS_UNICODE, tmp_var, var_len + 1);
|
zend_u_hash_del(ht, IS_UNICODE, tmp_var, var_len + 1);
|
||||||
zval_dtor(val);
|
zval_dtor(val);
|
||||||
|
|
||||||
|
/* do not output the error message to the screen,
|
||||||
|
this helps us to to avoid "information disclosure" */
|
||||||
if (!PG(display_errors)) {
|
if (!PG(display_errors)) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variable nesting level exceeded %ld. To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_level));
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variable nesting level exceeded %ld. To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_level));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue