Hi Ilia,

+ char mode[3] = "wb";

+ if (flags & PHP_FILE_APPEND) {
+ mode[0] = 'a';
+ } else if (flags & LOCK_EX) {
+ mode[0] = 'c';

uhm, I think this assignment isn't needed, as the variable should already contain the '\0' from the initilization above.
+ mode[2] = '\0';


probably you meant == 'c' here
+ if (mode[0] = 'c') {
+ php_stream_truncate_set_size(stream, 0);
+ }


Nuno
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to