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

From: Date: Tue, 16 Aug 2011 07:11:53 +0000
Subject: Doc #55432 [Opn]: 5th phar::webPhar parameter is not an array
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7012@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: cweiske@php.net Reported by: cweiske@php.net Summary: 5th phar::webPhar parameter is not an array Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#7012) next »