php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53670 phar:// wrapper do not read empty files
Submitted: 2011-01-06 15:27 UTC Modified: 2011-02-01 21:04 UTC
From: bugzilla33 at gmail dot com Assigned:
Status: Closed Package: PHAR related
PHP Version: 5.3.5 OS: win7 32
Private report: No CVE-ID: None
 [2011-01-06 15:27 UTC] bugzilla33 at gmail dot com
Description:
------------
phar:// wrapper do not read empty files


Test script:
---------------
download and unzip testcase

http://host0001.webd.pl/bugs/php/phar_empty_file.zip

Step 1. To compress phar folder to phar.phar file run:
step_1_compress_to_phar.php 

Step 2. require data from phar.phar/first.php
step_2_read_phar_first.php

Step 3. require data from phar.phar/second.php
step_3_read_phar_second.php


Expected result:
----------------
no internal corruption of phar
when reading empty files


Actual result:
--------------
failed to open stream: phar error: internal corruption of phar


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-01 21:02 UTC] bugzilla33 at gmail dot com
-Status: Open +Status: Closed -PHP Version: 5.3.4 +PHP Version: 5.3.5
 [2011-02-01 21:02 UTC] bugzilla33 at gmail dot com
Testcase link does not work.

New, better description and new testcase at
http://bugs.php.net/bug.php?id=53872
 [2011-02-01 21:04 UTC] bugzilla33 at gmail dot com
dupe of bug #53872
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 14:01:29 2024 UTC