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

From: Date: Thu, 06 Jan 2011 14:27:49 +0000
Subject: Bug #53670 [NEW]: phar:// wrapper do not read empty files
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157683@lists.php.net to get a copy of this message
From:             
Operating system: win7 32
PHP version:      5.3.4
Package:          PHAR related
Bug Type:         Bug
Bug description:phar:// wrapper do not read empty files

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 bug report at http://bugs.php.net/bug.php?id=53670&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=53670&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=53670&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=53670&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=53670&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53670&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=53670&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=53670&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=53670&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=53670&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=53670&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=53670&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=53670&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=53670&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=53670&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53670&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53670&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=53670&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=53670&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=53670&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=53670&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=53670&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#157683) next »