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

From: Date: Wed, 23 Jul 2008 20:36:25 +0000
Subject: #45394 [Opn->Asn]: phar::running options reversed
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-996@lists.php.net to get a copy of this message
ID: 45394 Updated by: sfox@php.net Reported By: sixd@php.net -Status: Open +Status: Assigned Bug Type: Documentation problem Operating System: Linux PHP Version: 5.2CVS-2008-06-30 (CVS) -Assigned To: +Assigned To: sfox New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#996) next »