Doc #55432 [Opn->Csd]: 5th phar::webPhar parameter is not an array

From: Date: Mon, 26 Nov 2012 23:08:08 +0000
Subject: Doc #55432 [Opn->Csd]: 5th phar::webPhar parameter is not an array
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9210@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55432&edit=1 ID: 55432 Updated by: googleguy@php.net Reported by: cweiske@php.net Summary: 5th phar::webPhar parameter is not an array -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: googleguy Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2011-08-16 07:11:52] 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. ------------------------------------------------------------------------ [2011-08-16 07:10:18] 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 --- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55432&edit=1

« previous php.doc.bugs (#9210) next »