From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      5.2CVS-2008-06-30 (CVS)
PHP Bug Type:     Unknown/Other Function
Bug description:  Phar::running options reversed

Description:
------------
The http://www.php.net/manual/en/phar.running.php examples and description
of the method argument say "TRUE by default. If TRUE, the full path on disk
to the phar archive is returned. If FALSE, a full phar URL is returned.". 


This is incorrect


Reproduce code:
---------------
<?php

echo "In index.php\n";

$a = Phar::running(); // $a is "/path/to/my.phar"
echo "phar file: $a\n";
$b = Phar::running(false); // $b is "phar:///path/to/my.phar"
echo "phar URL: $b\n";

?>


Expected result:
----------------
In index.php
phar file: /home/cjones/public_html/phr1.phar
phar URL: phar:///home/cjones/public_html/phr1.phar

Actual result:
--------------
In index.php
phar file: phar:///home/cjones/public_html/phr1.phar
phar URL: /home/cjones/public_html/phr1.phar

-- 
Edit bug report at http://bugs.php.net/?id=45394&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45394&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45394&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45394&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45394&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45394&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45394&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45394&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45394&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45394&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45394&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45394&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45394&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45394&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45394&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45394&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45394&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45394&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45394&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45394&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45394&r=mysqlcfg

Reply via email to