#45394 [Asn->Csd]: phar::running options reversed

From: Date: Fri, 22 Aug 2008 04:28:33 +0000
Subject: #45394 [Asn->Csd]: phar::running options reversed
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1116@lists.php.net to get a copy of this message
ID: 45394 Updated by: cellog@php.net Reported By: sixd@php.net -Status: Assigned +Status: Closed Bug Type: Documentation problem Operating System: Linux PHP Version: 5.2CVS-2008-06-30 (CVS) -Assigned To: sfox +Assigned To: cellog New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. got bored and fixed it Previous Comments: ------------------------------------------------------------------------ [2008-07-23 20:36:24] sfox@php.net Thanks! I'll be going through the docs with a fine-toothed comb once we hit the feature freeze for PHP 5.3. Will close this when the description is reversed :) - Steph ------------------------------------------------------------------------ [2008-06-30 18:10:11] sixd@php.net 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 this bug report at http://bugs.php.net/?id=45394&edit=1

« previous php.doc.bugs (#1116) next »