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

 ID:                 53537
 Updated by:         f...@php.net
 Reported by:        alexander dot over at koeln dot de
 Summary:            Phar not working on PHP-FPM
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            PHAR related
 Operating System:   Debian
 PHP Version:        5.3.4
 Assigned To:        fat
 Block user comment: N
 Private report:     N

 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------
[2011-11-16 09:44:18] alexander dot over at koeln dot de

I've done some tests now.
i can't reproduce the bug in every 5.3 version when using nginx as webserver.

It seems that only lighttpd fastcgi implementation is the problem here.

------------------------------------------------------------------------
[2011-11-16 00:23:27] f...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

I made a test on the 5.3 branch and it works great.

The only thing it that .phar extensions were not authorized as default 
acception 
extension by FPM.

I fixed it. See http://svn.php.net/viewvc?view=revision&revision=319287

Can you please test on a snapshot ?

------------------------------------------------------------------------
[2011-11-15 23:35:43] fel...@php.net

Jérôme, can you check it?

------------------------------------------------------------------------
[2010-12-13 14:04:17] alexander dot over at koeln dot de

Description:
------------
When try to run a .phar on PHP running as FPM, i got an endless redirect loop.

Test script:
---------------
<?php
$p = new Phar('test.phar');
$p->setStub($p->createDefaultStub('stub.php', 'index.php'));
$p->addFromString('index.php', '<?php phpinfo();');

header('Location: test.phar');

Expected result:
----------------
output from phpinfo();

Actual result:
--------------
redirection loop (301)


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



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

Reply via email to