ID: 46939
Updated by: [email protected]
Reported By: lunter at interia dot pl
-Status: Open
+Status: Assigned
Bug Type: PHAR related
Operating System: WinXP
PHP Version: 5.3.0alpha3
-Assigned To:
+Assigned To: cellog
Previous Comments:
------------------------------------------------------------------------
[2008-12-24 16:06:46] lunter at interia dot pl
Description:
------------
This PHP code triggers:
Fatal error: Uncaught exception 'UnexpectedValueException' with message
'Cannot create phar 'core.php', file extension (or combination) not
recognised' in C:\htdocs\a\!phar2.php:2 Stack trace: #0
C:\htdocs\a\!phar2.php(2): Phar->__construct('core.php') #1 {main}
thrown in C:\htdocs\a\!phar2.php on line 2
but *.php files work as good as *.phar
when using:
1) http://web.com/file.php/index.php
2) require('phar://file.php');
Reproduce code:
---------------
<?
$p=new Phar('core.php');
?>
Expected result:
----------------
NO Fatal error wheh extension is *.php (*.php5, *.php6)
Actual result:
--------------
Fatal error wheh extension is *.php (*.php5, *.php6)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46939&edit=1