From: Sterling Hughes Date: Wed, 14 Nov 2001 12:57:06 +0000 (+0000) Subject: Many other reasons that setvbuf can fail than "wrong arguments", returning X-Git-Tag: ChangeLog~316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42b9349d8b25808db9a25060ed11b8c751295670;p=php Many other reasons that setvbuf can fail than "wrong arguments", returning false should be enough --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 5b4f92749c..0bfd0da89d 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1391,9 +1391,6 @@ PHP_FUNCTION(set_file_buffer) ret = setvbuf((FILE *) what, NULL, _IOFBF, buff); } - if (ret) { - php_error(E_WARNING, "Illegal value for set_file_buffer()"); - } RETURN_LONG(ret); } /* }}} */