From afc76bc71fdc13b0e346dbfd81a6d80a3d810a4b Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 13 Nov 2007 10:31:24 +0000 Subject: [PATCH] fix typo (nice catch, Nuno!) --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index 45c31c7201..f7ebe4c434 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -610,7 +610,7 @@ PHP_FUNCTION(file_put_contents) RETURN_FALSE; } - if (mode[0] = 'c') { + if (mode[0] == 'c') { php_stream_truncate_set_size(stream, 0); } -- 2.50.1