php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61905 ext\phar\tests\zip\phar_commitwrite.phpt fails
Submitted: 2012-05-02 15:15 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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ab@php.net
New email:
PHP Version: OS:

 

 [2012-05-02 15:15 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\zip\phar_commitwrite.php:3
002+ Stack trace:
003+ #0 C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\phar\tests\zip\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\zip\phar_commitwrite.php on line 3
001- string(60) "<?php // zip-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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-07 13:41 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 11:01:30 2025 UTC