Closed (works as designed)
Project:
Bot
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2011 at 01:07 UTC
Updated:
19 Sep 2011 at 02:28 UTC
Seen on #drupal-contribute:
[21:01] <Druplicon> file_scan_directory: [Documented summary is not one line. This is a bug. File a patch!] => file_scan_directory($dir, $mask, $nomask = array('.', '..', 'CVS'), $callback = 0, $recurse = TRUE, $key = 'filename', $min_depth = 0, $depth = 0) => http://api.drupal.org/api/function/file_scan_directory/6
If you follow the link given, you will see that the documented summary is one line, to wit:
Finds all files that match a given mask in a given directory.
Since Druplicon is obviously incorrect according to the API, how can this be fixed?
Comments
Comment #1
dave reidLook at the code in D6:
D6 needs to be patched to have a new line between the first and second lines. Bot module is reporting this correctly.
Comment #2
pillarsdotnet commentedAh. Thanks. I guess api.drupal.org is inserting the blank line, then.
Comment #3
pillarsdotnet commentedNo, I just checked 6.x. There is a blank line.
See http://drupalcode.org/project/drupal.git/blob/refs/heads/6.x:/includes/file.inc#l924.
Comment #4
pillarsdotnet commentedThe blank line was inserted by this patch and committed here.
Here's the commit diff.
Comment #5
dave reidHrm, interesting.
Comment #6
pillarsdotnet commentedPerhaps Druplicon is inspecting the 6.x code on the Drupal installation where it is running?
Comment #7
morbus iffDruplicon's API lookups are stalled in time from circa late D6, early D7, solely because api.module hasn't been ported to D7 yet. This has been a continual problem with providing said lookups, and there are plans to eventually move to an api.module-less approach, per #1061292.