php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20598 bzip2 doesn't create new files
Submitted: 2002-11-23 13:08 UTC Modified: 2002-12-04 18:17 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: le10 at zipmail dot com dot br Assigned:
Status: No Feedback Package: Bzip2 Related
PHP Version: 4.2.3 OS: Windows NT 4.0 SP6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: le10 at zipmail dot com dot br
New email:
PHP Version: OS:

 

 [2002-11-23 13:08 UTC] le10 at zipmail dot com dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-23 13:09 UTC] 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-12-04 18:17 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 22:01:23 2020 UTC