]> granicus.if.org Git - php/commitdiff
fix typo (nice catch, Nuno!)
authorAntony Dovgal <tony2001@php.net>
Tue, 13 Nov 2007 10:31:24 +0000 (10:31 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 13 Nov 2007 10:31:24 +0000 (10:31 +0000)
ext/standard/file.c

index 45c31c72013ab207a487dde83c06180880c101a0..f7ebe4c434979d43a96acc7adc176a2ae0d480e3 100644 (file)
@@ -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);
        }