Bug #63297 [Com]: Phar fails to write an openssl based signature

From: Date: Wed, 17 Oct 2012 22:13:53 +0000
Subject: Bug #63297 [Com]: Phar fails to write an openssl based signature
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-174126@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63297&edit=1

 ID:                 63297
 Comment by:         mattficken@php.net
 Reported by:        ab@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] ab@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] ab@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] ab@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


Thread (8 messages)

« previous php.bugs (#174126) next »