Re: cvs: php-src(PHP_5_2) /ext/standard/tests/file file_put_contents.phpt
| From: | Marcus Boerger | Date: | Mon, 29 May 2006 18:39:09 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) /ext/standard/tests/file file_put_contents.phpt | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-38477@lists.php.net to get a copy of this message | ||
Hello Antony,
i have a different set of scripts based on Ken Coar's that work perfectly
at my office. But Rasmus had problems setting them up. So i am not sure it
is a good idea to install them and try a bit until the issues are solved.
For example we should block access to all but a test repository/module
during that time.
best regards
marcus
Monday, May 29, 2006, 12:50:19 PM, you wrote:
> Could someone fix this damned CVS log script ?
> Currently it shows data from HEAD when a different data has been actually
> committed to a branch, which is kinda confusing.
> And those infamous "empty log mails" when somebody adds a file only to a branch..
> On 29.05.2006 14:42, Antony Dovgal wrote:
>> tony2001 Mon May 29 10:42:54 2006 UTC
>>
>> Added files: (Branch: PHP_5_2)
>> /php-src/ext/standard/tests/file file_put_contents.phpt
>> Log:
>> add test
>>
>>
>>
>> —BaP¶º*ÚGü¶a
>> ahhttp://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/file_put_contents.phpt?view=markup&rev=1.1
>> Index: php-src/ext/standard/tests/file/file_put_contents.phpt
>> +++ php-src/ext/standard/tests/file/file_put_contents.phpt
>> --TEST--
>> file_put_contents() and invalid parameters
>> --FILE--
>> <?php
>>
>> $file = dirname(__FILE__)."/file_put_contents.txt";
>>
>> $context = stream_context_create();
>>
>> var_dump(file_put_contents($file, $context));
>> var_dump(file_put_contents($file, new stdClass));
>> $fp = fopen($file, "r");
>> var_dump(file_put_contents($file, "string", 0, $fp));
>>
>> @unlink($file);
>>
>> echo "Done\n";
>> ?>
>> --EXPECTF--
>> Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on
>> line %d
>> bool(false)
>>
>> Warning: file_put_contents(): 2nd parameter must be non-object (for now) in %s on line %d
>> bool(false)
>>
>> Warning: file_put_contents(): supplied resource is not a valid Stream-Context resource in
>> %s on line %d
>> int(6)
>> Done
>> --UEXPECTF--
>> Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on
>> line %d
>> bool(false)
>>
>> Warning: file_put_contents(): 2nd parameter must be non-object (for now) in %s on line %d
>> bool(false)
>>
>> Warning: file_put_contents(): supplied resource is not a valid Stream-Context resource in
>> %s on line %d
>>
>> Notice: file_put_contents(): 6 character unicode buffer downcoded for binary stream
>> runtime_encoding in %s on line %d
>> int(6)
>> Done