#20598 [Fbk->NoF]: bzip2 doesn't create new files
| From: | sniper@php.net | Date: | Thu, 05 Dec 2002 00:17:40 +0000 |
| Subject: | #20598 [Fbk->NoF]: bzip2 doesn't create new files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26681@lists.php.net to get a copy of this message | ||
ID: 20598
Updated by: sniper@php.net
Reported By: le10@zipmail.com.br
-Status: Feedback
+Status: No Feedback
Bug Type: Bzip2 Related
Operating System: Windows NT 4.0 SP6a
PHP Version: 4.2.3
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2002-11-23 13:09:36] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-11-23 13:08:58] le10@zipmail.com.br
I have tried to test the example 'Small bzip2 Example', but it doesn't
work, the function 'bzopen($filename, "w")' isn't creating a new file.
I get a error 'Warning: bzopen(): Unable to open file in
D:\Inetpub\wwwroot\php\smallbzip2.php on line 7'.
So I change the code from:
--------------------------------------------------
<?php
$filename = "D:/TEMP/testfile.bz2";
$str = "This is a test string.\n";
// open file for writing
$bz = bzopen($filename, "w");
.
.
.
?>
--------------------------------------------------
to:
--------------------------------------------------
<?php
$filename = "D:/TEMP/testfile.bz2";
$str = "This is a test string.\n";
// open file for writing
$fp= fopen($filename,"w"); //<<------HERE
fclose($fp); //<<----- HERE
$bz = bzopen($filename, "w");
.
.
.
?>
----------------------------------------------------------------
My configuration is:
Windows NT 4.0 SP6a;
IIS 4.0;
PHP-4.2.3(binary);
The system has full control over D:\TEMP;
----------------------------------------------------------------
Leandro Campos
Sao Vicente - Sao Paulo - Brazil.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20598&edit=1