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

index 605367c40563b6c994c619a4b35ea43ecf033720..b68bedbbf45e0592818ff0883f10c0e7f2a0b508 100644 (file)
@@ -622,7 +622,7 @@ PHP_FUNCTION(file_put_contents)
                RETURN_FALSE;
        }
 
-       if (mode[0] = 'c') {
+       if (mode[0] == 'c') {
                php_stream_truncate_set_size(stream, 0);
        }