php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61903 ext\phar\tests\tar\phar_commitwrite.phpt fails
Submitted: 2012-05-02 15:08 UTC Modified: 2012-05-07 13:41 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: PHAR related
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
 [2012-05-02 15:08 UTC] ab@php.net
Description:
------------
test diff:

001+ Fatal error: Uncaught exception 'BadMethodCallException' with message 'Entry file1.txt does not exist and cannot be created: phar error: unable to create temporary file' in C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\phar\tests\tar\phar_commitwrite.php:3
002+ Stack trace:
003+ #0 C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\phar\tests\tar\phar_commitwrite.php(3): Phar->offsetSet('file1.txt', 'hi')
004+ #1 {main}
005+   thrown in C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\phar\tests\tar\phar_commitwrite.php on line 3
001- string(60) "<?php // tar-based phar archive stub file
002- __HALT_COMPILER();"
003- string(200) "<?php
004- function __autoload($class)
005- {
006-     include 'phar://' . str_replace('_', '/', $class);
007- }
008- Phar::mapPhar('brandnewphar.phar');
009- include 'phar://brandnewphar.phar/startup.php';
010- __HALT_COMPILER(); ?>
011- "
012- bool(true)
013- ===DONE===

Expected result:
----------------
test pass

Actual result:
--------------
test fail

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-07 13:41 UTC] ab@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-05-07 13:41 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC