From: Antony Dovgal Date: Tue, 13 Nov 2007 10:31:24 +0000 (+0000) Subject: fix typo (nice catch, Nuno!) X-Git-Tag: RELEASE_1_3_1~655 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afc76bc71fdc13b0e346dbfd81a6d80a3d810a4b;p=php fix typo (nice catch, Nuno!) --- 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); }