cvs: pear /PhpDocumentor package.xml /PhpDocumentor/phpDocumentor ParserData.inc
| From: | Chuck Burgess | Date: | Tue, 24 Apr 2007 21:27:43 +0000 |
| Subject: | cvs: pear /PhpDocumentor package.xml /PhpDocumentor/phpDocumentor ParserData.inc | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-46136@lists.php.net to get a copy of this message | ||
ashnazg Tue Apr 24 21:27:43 2007 UTC
Modified files:
/pear/PhpDocumentor package.xml
/pear/PhpDocumentor/phpDocumentor ParserData.inc
Log:
Sourceforge [1574043] Refactored RETURNs #1
http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/package.xml?r1=1.102&r2=1.103&diff_format=u
Index: pear/PhpDocumentor/package.xml
diff -u pear/PhpDocumentor/package.xml:1.102 pear/PhpDocumentor/package.xml:1.103
--- pear/PhpDocumentor/package.xml:1.102 Thu Apr 19 20:20:56 2007
+++ pear/PhpDocumentor/package.xml Tue Apr 24 21:27:43 2007
@@ -54,7 +54,7 @@
<lead>
<name>Joshua Eichorn</name>
<user>jeichorn</user>
- <email>jeichorn@php.net</email>
+ <email>jeichorn@phpdoc.org</email>
<active>yes</active>
</lead>
<developer>
@@ -91,6 +91,7 @@
- [1602988] Added --ignore-symlinks option
- [1588942] Allow memory_limit setting in phpdoc.ini
- [1588936] Show INI Path at Startup
+- [1574043] Refactored RETURNs #1
- [1543289] Apply ignore patterns to subdir of dir, instead of full path
- [1543287] Use predefined PHP env var in phpdoc script
- [1540666] patch for @property, @property-read and @property-write tags
@@ -250,6 +251,8 @@
<file name="bug-pageleveldocsblocks.php" role="test" />
<file name="bug-quote_new_parser.php" role="test" />
<file name="bug-shortdesc.php" role="test" />
+ <file name="bug1574043.php" role="test" />
+ <file name="bug1574047.php" role="test" />
<file name="bug1602961.php" role="test" />
<file name="bug1620470.php" role="test" />
<file name="phpt_test.php.inc" role="test" />
@@ -2950,6 +2953,7 @@
- [1602988] Added --ignore-symlinks option
- [1588942] Allow memory_limit setting in phpdoc.ini
- [1588936] Show INI Path at Startup
+- [1574043] Refactored RETURNs #1
- [1543289] Apply ignore patterns to subdir of dir, instead of full path
- [1543287] Use predefined PHP env var in phpdoc script
- [1540666] patch for @property, @property-read and @property-write tags
http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/phpDocumentor/ParserData.inc?r1=1.7&r2=1.8&diff_format=u
Index: pear/PhpDocumentor/phpDocumentor/ParserData.inc
diff -u pear/PhpDocumentor/phpDocumentor/ParserData.inc:1.7
pear/PhpDocumentor/phpDocumentor/ParserData.inc:1.8
--- pear/PhpDocumentor/phpDocumentor/ParserData.inc:1.7 Thu Apr 19 20:20:57 2007
+++ pear/PhpDocumentor/phpDocumentor/ParserData.inc Tue Apr 24 21:27:43 2007
@@ -30,7 +30,7 @@
* @author Gregory Beaver <cellog@php.net>
* @copyright 2002-2006 Gregory Beaver
* @license http://www.opensource.org/licenses/lgpl-license.php
LGPL
- * @version CVS: $Id: ParserData.inc,v 1.7 2007/04/19 20:20:57 ashnazg Exp $
+ * @version CVS: $Id: ParserData.inc,v 1.8 2007/04/24 21:27:43 ashnazg Exp $
* @link http://www.phpdoc.org
* @link http://pear.php.net/PhpDocumentor
* @since 1.0rc1
@@ -42,7 +42,7 @@
* @subpackage ParserData
* @author Greg Beaver <cellog@php.net>
* @since 1.0rc1
- * @version $Id: ParserData.inc,v 1.7 2007/04/19 20:20:57 ashnazg Exp $
+ * @version $Id: ParserData.inc,v 1.8 2007/04/24 21:27:43 ashnazg Exp $
*/
class parserPage
{
@@ -236,26 +236,34 @@
* @param Converter
* @param boolean if this parameter is true, it will truncate the source location to the
* subdirectory of pear
- * @return string path of this file relative to program root
- */
+ * @return string path of this file relative to program root
+ * @todo determine if the str_replace in the 'pear/' ELSE branch should be removed
+ * (see Documentation/tests/bug1574043.php). It does NOT exist in the similar
+ * function parserClass->getSourceLocation() in ParserElements.inc.
+ */
function getSourceLocation ($c,$pearize = false)
{
global $_phpDocumentor_options;
- if (!isset($this->sourceLocation)) return false;
- if ($pearize)
+ if (!isset($this->sourceLocation))
+ {
+ $sl = false;
+ }
+ else
{
$sl = $this->sourceLocation;
- if (strpos($sl,'pear/'))
- {
- $sl = substr($sl,strpos($sl,'pear/') + 5);
- return $sl;
- } else
+ if ($pearize)
{
- return str_replace($_phpDocumentor_options['Program_Root'] .
PATH_DELIMITER,'',$sl);
+ if (strpos($sl,'pear/'))
+ {
+ $sl = substr($sl,strpos($sl,'pear/') + 5);
+ }
+ else
+ {
+ $sl = str_replace($_phpDocumentor_options['Program_Root'] .
PATH_DELIMITER,'',$sl);
+ }
}
- return $sl;
}
- return $this->sourceLocation;
+ return $sl;
}
/**
* Not implemented in this version
@@ -282,7 +290,7 @@
* @subpackage ParserData
* @author Greg Beaver <cellog@php.net>
* @since 1.0rc1
- * @version $Id: ParserData.inc,v 1.7 2007/04/19 20:20:57 ashnazg Exp $
+ * @version $Id: ParserData.inc,v 1.8 2007/04/24 21:27:43 ashnazg Exp $
*/
class parserData
{
@@ -561,7 +569,7 @@
* @abstract
* @author Greg Beaver <cellog@php.net>
* @since 1.0rc1
- * @version $Id: ParserData.inc,v 1.7 2007/04/19 20:20:57 ashnazg Exp $
+ * @version $Id: ParserData.inc,v 1.8 2007/04/24 21:27:43 ashnazg Exp $
*/
class parserBase
{
@@ -610,7 +618,7 @@
* @subpackage ParserData
* @author Greg Beaver <cellog@php.net>
* @since 1.0rc1
- * @version $Id: ParserData.inc,v 1.7 2007/04/19 20:20:57 ashnazg Exp $
+ * @version $Id: ParserData.inc,v 1.8 2007/04/24 21:27:43 ashnazg Exp $
*/
class parserStringWithInlineTags extends parserBase
{