cvs: pear /PHPDoc/parser PhpdocParserCore.php

From: Date: Wed, 29 Aug 2001 15:50:13 +0000
Subject: cvs: pear /PHPDoc/parser PhpdocParserCore.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-697@lists.php.net to get a copy of this message
chagenbu Wed Aug 29 11:50:13 2001 EDT Modified files: /pear/PHPDoc/parser PhpdocParserCore.php Log: woops. here's the fix for null arguments. Index: pear/PHPDoc/parser/PhpdocParserCore.php diff -u pear/PHPDoc/parser/PhpdocParserCore.php:1.4 pear/PHPDoc/parser/PhpdocParserCore.php:1.5 --- pear/PHPDoc/parser/PhpdocParserCore.php:1.4 Tue Aug 28 14:44:23 2001 +++ pear/PHPDoc/parser/PhpdocParserCore.php Wed Aug 29 11:50:12 2001 @@ -5,7 +5,7 @@ * Provides basic parser functions to extract doc comments, analyse tags and variable * declarations. * -* @version $Id: PhpdocParserCore.php,v 1.4 2001/08/28 18:44:23 chagenbu Exp $ +* @version $Id: PhpdocParserCore.php,v 1.5 2001/08/29 15:50:12 chagenbu Exp $ */ class PhpdocParserCore extends PhpdocParserTags { @@ -640,7 +640,11 @@ } else if (preg_match($this->PHP_COMPLEX['type_constant'], $code, $regs)) { $constant = strtolower(trim($regs[0])); - if ($constant != 'null' && $constant != 'null,') { + if ($constant == 'null' || $constant == 'null,') { + $type = ''; + $value = 'null'; + $raw_value = 'null'; + } else { $type = 'constant'; $raw_value = $regs[0]; $value = $regs[0];

« previous php.pear.cvs (#697) next »