Breaking this off from #1191236: Correct file_copy, file_move, file_save_data, and drupal_realpath to match documentation and their unmanaged counterparts.
The documentation for the $uri parameter to drupal_realpath() says, in part:
If this value is omitted, Drupal's default files directory will be used [public://].
However, this claim is untrue. Omitting the $uri parameter will actually result in a PHP warning, and the function will return FALSE.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drupal_realpath-make_code_match_docs-1192470-1.patch | 1.03 KB | pillarsdotnet |
Comments
Comment #1
pillarsdotnet commentedPatch makes the code match the docs.
Comment #2
pillarsdotnet commentedComment #3
pillarsdotnet commentedComment #4
pillarsdotnet commentedDuplicate of #1192466: Make docs of drupal_realpath() match code.