|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-09-09 17:43 UTC] felipe@php.net
Description:
------------
See the "file name" in the exception trace.
Reproduce code:
---------------
<?php
new phardata('0000000000000000000');
Actual result:
--------------
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar '0000000000000000000', file extension (or combination) not recognised' in %s:%d
Stack trace:
#0 /home/felipe/public_html/bug.php(3): PharData->__construct('????`hf???????0...')
#1 {main}
thrown in %s on line %d
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 24 12:00:01 2025 UTC |
See also: <?php $a = __DIR__ .'/mytest'; try { new phar($a); } catch (exception $e) { } var_dump($a); try { new phar($a); } catch (exception $e) { } var_dump($a); Output: string(31) "" string(31) "�P�4�PX4dP�"