From: lunter at interia dot pl Operating system: WinXP PHP version: 5.3.0alpha3 PHP Bug Type: PHAR related Bug description: fatal error on new Phar
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 bug report at http://bugs.php.net/?id=46939&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46939&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46939&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46939&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46939&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46939&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46939&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46939&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46939&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46939&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46939&r=support Expected behavior: http://bugs.php.net/fix.php?id=46939&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46939&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46939&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46939&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46939&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46939&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46939&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46939&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46939&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46939&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46939&r=mysqlcfg