Bug #52322 [Opn]: webPhar acting like not running in webpage

From: Date: Thu, 04 May 2017 11:07:43 +0000
Subject: Bug #52322 [Opn]: webPhar acting like not running in webpage
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208953@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52322&edit=1 ID: 52322 Updated by: cweiske@php.net Reported by: myselfasunder at gmail dot com Summary: webPhar acting like not running in webpage Status: Open Type: Bug Package: PHAR related Operating System: Windows 7 PHP Version: 5.2.13 Block user comment: N Private report: N New Comment: The same issue can be observed by symlinking a .phar file, see bug #67071. Reason for this behavior is that Phar::webPhar() tries to extract the path after the .phar filename so that it can do the mapping. When accessing /test.phar/foo.css, it looks for "test.phar" and then uses "/foo.css" as path of the file that shall be extracted. If the file name "test.phar" (zend_get_executed_filename()) cannot be found within SCRIPT_NAME (cgi) or REQUEST_URI (non-cgi), it does not know how to continue and returns: > /* this can happen with rewrite rules - and we have no idea what to do then, so return */ Previous Comments: ------------------------------------------------------------------------ [2017-05-04 11:02:07] cweiske@php.net Related To: Bug #67071 ------------------------------------------------------------------------ [2016-05-29 10:33:57] f dot hazard at sowapps dot com I am experiencing the same issue and I dont understand why this is not working. I am including it in an index.php file with require_once 'myapp.phar'; The is clearly redirecting me to the CLI interface if I try to access it from a browser. I am currently building the PHAR with php5.5.12 under Windows 10 and running it using 5.6.21-1~dotdeb+7.1. ------------------------------------------------------------------------ [2014-04-14 04:20:16] myselfasunder at gmail dot com Feel free to comment on that bug. ------------------------------------------------------------------------ [2014-04-14 04:09:29] cweiske@php.net I'm afraid I am not bitten by this bug but rather by bug #67071. ------------------------------------------------------------------------ [2014-03-21 20:46:45] cweiske@php.net I have this problem using PHP 5.4.4 (debian) via CGI on Lighttpd. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52322 -- Edit this bug report at https://bugs.php.net/bug.php?id=52322&edit=1

« previous php.bugs (#208953) next »