mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
add safe_mode num of parameter check
This commit is contained in:
@@ -3069,7 +3069,12 @@ PHP_FUNCTION(mb_send_mail)
|
||||
HashTable ht_headers;
|
||||
smart_str *s;
|
||||
extern void mbfl_memory_device_unput(mbfl_memory_device *device);
|
||||
|
||||
|
||||
if (PG(safe_mode) && (ZEND_NUM_ARGS() == 5)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE.");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
/* initialize */
|
||||
mbfl_memory_device_init(&device, 0, 0);
|
||||
mbfl_string_init(&orig_str);
|
||||
|
||||
Reference in New Issue
Block a user