PHPDoc bugfix

From: Date: Fri, 23 Aug 2002 13:02:43 +0000
Subject: PHPDoc bugfix
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8624@lists.php.net to get a copy of this message
Hi there, I have recently started to use PHPDoc intensively, it comes in very handy! Currently I'm generating documentation where I have subdirectories which are not readable by my webserver. Unfortunately in filehandler/PhpdocFileHandler.php this results in the getFilesInDirectory() function to return an empty array, which in turn resets the $files array, so that it is left empty. A simple fix would be the following patch (against the current CVS version 1.3): Index: filehandler/PhpdocFileHandler.php =================================================================== RCS file: /repository/pear/PHPDoc/filehandler/PhpdocFileHandler.php,v retrieving revision 1.3 diff -c -3 -r1.3 PhpdocFileHandler.php *** filehandler/PhpdocFileHandler.php 26 Jul 2002 14:49:39 -0000 1.3 --- filehandler/PhpdocFileHandler.php 23 Aug 2002 12:53:41 -0000 *************** *** 179,185 **** $dh = @opendir($directory); if (!$dh) { $this->err[] = new PhpdocError("Can't open '$directory' for reading.", __FILE__, __LINE__); ! return array(); } while ($file = readdir($dh)) { --- 179,185 ---- $dh = @opendir($directory); if (!$dh) { $this->err[] = new PhpdocError("Can't open '$directory' for reading.", __FILE__, __LINE__); ! return $files; } while ($file = readdir($dh)) { Kind regards, Jeroen Derks -- drs. Jeroen Derks, CISSP, SCJP http://www.jeroenderks.com/ jeroen@derks.it http://www.derks.it/ Derks.IT gsm. +31 (0) 6 5577 8224 Postbus 56791 fax. +31 (0) 84 870 6519 1040 AT Amsterdam tel. +31 (0) 20 777 5488

« previous php.pear.dev (#8624) next »