For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2006 > cvs: phpdoc /scripts check-acronyms.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /scripts check-acronyms.php
Etienne Kneuss

2006-08-25, 6:57 pm

colder Fri Aug 25 18:19:50 2006 UTC

Modified files:
/phpdoc/scripts check-acronyms.php
Log:
fixed condition to throw the error message

http://cvs.php.net/viewvc.cgi/phpdo...2&diff_format=u
Index: phpdoc/scripts/check-acronyms.php
diff -u phpdoc/scripts/check-acronyms.php:1.1 phpdoc/scripts/check-acronyms.php:1.2
--- phpdoc/scripts/check-acronyms.php:1.1 Thu Aug 24 00:34:36 2006
+++ phpdoc/scripts/check-acronyms.php Fri Aug 25 18:19:50 2006
@@ -16,7 +16,7 @@
| Authors: Etienne Kneuss <colder@php.net> |
+----------------------------------------------------------------------+

- $Id: check-acronyms.php,v 1.1 2006/08/24 00:34:36 colder Exp $
+ $Id: check-acronyms.php,v 1.2 2006/08/25 18:19:50 colder Exp $
*/
// {{{ header, sanity cheks
if (PHP_SAPI !== 'cli') {
@@ -173,7 +173,7 @@
if ($mode == M_GLOBAL) {
$occ = count($infos['locations']);
printf(" %-20s %-60s [%2d occurences]\n", $acronym, "($infos[description])", $occ);
- } else if ($mode == M_SPECIFIC || $mode == M_VERBOSE) {
+ } else if ($mode === M_SPECIFIC || $mode === M_VERBOSE) {

if ($mode === M_VERBOSE && count($infos['locations']) || in_array($acronym, $requested_acronyms)) {

@@ -192,7 +192,7 @@
}
}

-if (!$found) {
+if (!$found && $mode === M_SPECIFIC) {
echo "ERROR: No informations were found about requested acronyms. It may not exist.\n";
}

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com