Bug #53670 [Csd]: phar:// wrapper do not read empty files

From: Date: Tue, 01 Feb 2011 20:04:45 +0000
Subject: Bug #53670 [Csd]: phar:// wrapper do not read empty files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158419@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53670&edit=1

 ID:                 53670
 User updated by:    bugzilla33 at gmail dot com
 Reported by:        bugzilla33 at gmail dot com
 Summary:            phar:// wrapper do not read empty files
 Status:             Closed
 Type:               Bug
 Package:            PHAR related
 Operating System:   win7 32
 PHP Version:        5.3.5
 Block user comment: N
 Private report:     N

 New Comment:

dupe of bug #53872


Previous Comments:
------------------------------------------------------------------------
[2011-02-01 21:02:43] 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-01-06 15:27:48] 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



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53670&edit=1


Thread (3 messages)

« previous php.bugs (#158419) next »