ID: 46032
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: PHAR related
Operating System: *
PHP Version: 5.2CVS-2008-09-09 (CVS)
New Comment:
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�"
Previous Comments:
------------------------------------------------------------------------
[2008-09-09 17:43:39] [EMAIL PROTECTED]
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46032&edit=1