cvs: pear /PHPDoc/parser PhpdocParserCore.php
| From: | Hayk Chamyan | Date: | Wed, 05 Dec 2001 13:01:02 +0000 |
| Subject: | cvs: pear /PHPDoc/parser PhpdocParserCore.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1473@lists.php.net to get a copy of this message | ||
Modified files:
/pear/PHPDoc/parser PhpdocParserRegExp.php
Index: PhpdocParserCore.php
===================================================================
RCS file: /repository/pear/PHPDoc/parser/PhpdocParserCore.php,v
retrieving revision 1.5
diff -u -r1.5 PhpdocParserCore.php
--- PhpdocParserCore.php 29 Aug 2001 15:50:12 -0000 1.5
+++ PhpdocParserCore.php 5 Dec 2001 12:15:42 -0000
@@ -637,7 +637,10 @@
$type = 'array';
}
$raw_value == $value;
-
+ } else if (preg_match($this->PHP_COMPLEX['type_empty_resource'],
$code, $regs)) {
+ $type = 'resource';
+ $value = $regs[0];
+ $raw_value = $regs[0];
} else if (preg_match($this->PHP_COMPLEX['type_constant'], $code,
$regs)) {
$constant = strtolower(trim($regs[0]));
if ($constant == 'null' || $constant == 'null,') {