- Whitespace

This commit is contained in:
Derick Rethans 2002-08-26 09:47:46 +00:00
parent 7edb660af9
commit fc7eb838fc

View file

@ -69,8 +69,10 @@ PHP_FUNCTION(ezmlm_hash)
Send an email message */
PHP_FUNCTION(mail)
{
char *to=NULL, *message=NULL, *headers=NULL, *subject=NULL, *extra_cmd=NULL;
int to_len,message_len,headers_len,subject_len,extra_cmd_len,i;
char *to=NULL, *message=NULL, *headers=NULL;
char *subject=NULL, *extra_cmd=NULL;
int to_len, message_len, headers_len;
int subject_len, extra_cmd_len, i;
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.");
@ -89,7 +91,9 @@ PHP_FUNCTION(mail)
if (to_len > 0) {
for (; to_len; to_len--) {
if(!isspace((unsigned char)to[to_len-1]))break;
if (!isspace((unsigned char) to[to_len - 1])) {
break;
}
to[to_len - 1] = '\0';
}
for (i = 0; to[i]; i++) {
@ -101,7 +105,9 @@ PHP_FUNCTION(mail)
if (subject_len > 0) {
for (; subject_len; subject_len--) {
if(!isspace((unsigned char)subject[subject_len-1]))break;
if (!isspace((unsigned char) subject[subject_len - 1])) {
break;
}
subject[subject_len - 1] = '\0';
}
for(i = 0; subject[i]; i++) {
@ -121,7 +127,9 @@ PHP_FUNCTION(mail)
RETVAL_FALSE;
}
if (extra_cmd) efree (extra_cmd);
if (extra_cmd) {
efree (extra_cmd);
}
}
/* }}} */