php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55432 5th phar::webPhar parameter is not an array
Submitted: 2011-08-16 07:10 UTC Modified: 2012-11-26 23:08 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: cweiske@php.net Assigned: googleguy (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cweiske@php.net
New email:
PHP Version: OS:

 

 [2011-08-16 07:10 UTC] cweiske@php.net
Description:
------------
The 5th parameter of Phar::webPhar is NOT as advertised an array but a callback - at least I get an error that my array is not a valid callback.

---
From manual page: http://www.php.net/phar.webphar%23See%20Also
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-16 07:11 UTC] cweiske@php.net
See http://www.mail-archive.com/internals@lists.php.net/msg33627.html

 * Phar::webPhar()'s $rewrite parameter is documented as an array of
path names to actual location.  This is too inflexible, and has instead
been replaced with a simple callback.  A php function that takes a
string as an argument and returns the actual path expected is used.  In
addition, if the function returns false, webPhar() will throw an HTTP
403 Denied code, so sections of a phar archive can be marked as off
limits.  This solves a problem of not having a protected out of document
root webspace inside a phar archive.
 [2012-11-26 23:08 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 [2012-11-26 23:08 UTC] googleguy@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 13:00:02 2026 UTC