From 42b9349d8b25808db9a25060ed11b8c751295670 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Wed, 14 Nov 2001 12:57:06 +0000 Subject: [PATCH] Many other reasons that setvbuf can fail than "wrong arguments", returning false should be enough --- ext/standard/file.c | 3 --- 1 file changed, 3 deletions(-) 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); } /* }}} */ -- 2.40.0