| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2008-12-25 04:33 UTC] cellog@php.net
  [2008-12-25 17:56 UTC] lunter at interia dot pl
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 03:00:01 2025 UTC | 
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)