Edit report at https://bugs.php.net/bug.php?id=63297&edit=1

 ID:                 63297
 Comment by:         mattfic...@php.net
 Reported by:        a...@php.net
 Summary:            Phar fails to write an openssl based signature
 Status:             Open
 Type:               Bug
 Package:            PHAR related
 Operating System:   Windows
 PHP Version:        5.3Git-2012-10-17 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

I’ve tried your patch on PHP_5_4…

All 3 of those tests pass for me. The only failing test I get is 
fatal_error_webphar.phpt.


Previous Comments:
------------------------------------------------------------------------
[2012-10-17 09:25:42] a...@php.net

After looking close I can see the same behaviour on this three tests

ext\phar\tests\tar\phar_setsignaturealgo2.phpt
ext\phar\tests\test_signaturealgos.phpt
ext\phar\tests\zip\phar_setsignaturealgo2.phpt

and also on 5.4 ... just a side note.

------------------------------------------------------------------------
[2012-10-17 09:22:18] a...@php.net

The following patch has been added/updated:

Patch Name: bug63297
Revision:   1350465738
URL:        
https://bugs.php.net/patch-display.php?bug=63297&patch=bug63297&revision=1350465738

------------------------------------------------------------------------
[2012-10-17 09:20:10] a...@php.net

Description:
------------
The test below fails on Windows




Test script:
---------------
ext\phar\tests\tar\phar_setsignaturealgo2.phpt

Expected result:
----------------
test Pass

Actual result:
--------------
There are several popups with the following messages when runnign on a debug 
build:

Run-Time Check Failure #2 - Stack around the variable 'data_len' was corrupted
Run-Time Check Failure #2 - Stack around the variable 'md_ctx' was corrupted

After the test has run, it's marked as passed though.

On a release build here's the diff

031+ phar error: unable to write signature to tar-based phar: unable to write 
phar 
"C:/php-sdk/php-test-pack-5.3-nts-windows-vc9-x86-r5d9fb8f/ext/phar/tests/tar/phar_setsignaturealgo2.phar.tar"
 with requested openssl signature===DONE===
031- array(2) {
032-   ["hash"]=>
033-   string(%d) "%s"
034-   ["hash_type"]=>
035-   string(7) "OpenSSL"
036- }
037- ===DONE===



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



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

Reply via email to