ID:              22279
 User updated by: carl at carldunham dot com
 Reported By:     carl at carldunham dot com
 Status:          Closed
 Bug Type:        Feature/Change Request
 PHP Version:     4.3.0
 New Comment:

Ah, so something like: 
 
$libdir = "zlib://mylib.tgz/"; 
 
require("${libdir}myfile.inc.php"); 
 
would work? Is it smart enough find mylib.tgz in the 
include_path?


Previous Comments:
------------------------------------------------------------------------

[2003-02-18 14:24:26] [EMAIL PROTECTED]

This is not something we plan to have in the core of PHP (too much
bloat, and not as fast as regular files), but starting in PHP 4.3.0, it
is possible to implement a virtual filesystem based on a tar archive
using PHP code itself by registering your own wrapper with the streams
subsystem.

However, the performance will not be so good on some platforms. (this
will be addressed in PHP 5).

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

[2003-02-18 12:58:30] carl at carldunham dot com

>From a configuration management point of view, it would be 
convenient to package up a library of files in a .tar file 
(optionally compressed) to include in an application. Of 
course, this can be done by untaring into a directory in 
the include_path, but being able to skip that step is 
preferred. 
 
This would be a similar feature Java's ".jar" file 
concept. 
 
Thanks! Love PHP to death! 
 

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


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

Reply via email to