ftruncate returns 1 on success and 0 on failure instead of 0 on success and -1 on failure.

This commit is contained in:
Sterling Hughes 2000-03-17 00:44:55 +00:00
parent cd83fb18c0
commit b3ecf2feaf

View File

@ -1477,7 +1477,7 @@ PHP_FUNCTION(ftruncate)
convert_to_long_ex(size);
ret = ftruncate(fileno((FILE *)what), (*size)->value.lval);
RETURN_LONG(ret);
RETURN_LONG(ret + 1);
}
/* }}} */