|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-14 09:55 UTC] steph dot fox at virgin dot net
[2008-09-14 11:06 UTC] greg at chiaraquartet dot net
[2008-09-14 11:14 UTC] st2oo2ww at yahoo dot com
[2009-04-30 00:40 UTC] greg at chiaraquartet dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 21:00:01 2025 UTC |
Description: ------------ Phar-extension cant create "phars" from php_stream_wrapper sources. Reproduce code: --------------- //use simple stream from PEAR include 'Stream/Var.php'; stream_wrapper_register( "var", "Stream_Var" ); $pkg_fname = 'temp.phar'; //create simple phar $a = new Phar($pkg_fname); $stub = '<?php __HALT_COMPILER();?>'; $a->setStub($stub); $a['module.php'] = file_get_contents('module.php'); $fname_wrapped = 'var://GLOBALS/buf_io'; $buf_io = file_get_contents($pkg_fname); $p = new Phar($fname_wrapped); Expected result: ---------------- no UnexpectedValueException Actual result: -------------- UnexpectedValueException: Cannot create phar 'var://GLOBALS/buf_io', file extension (or combination) not recognised in /workdir/public_html/phar_test.php