Skip to content
Snippets Groups Projects

Issue #3516343: replace to getDirectoryPath to realpath

Issue #3516343: replace to getDirectoryPath to realpath
1 unresolved thread
Open julio retkwa requested to merge issue/drupal-3516343:11.x into 11.x
1 unresolved thread

Replaces as function as mentioned @ #3516343

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
271 271 if ($this->streamWrapperManager->isValidScheme($scheme)) {
272 272 $wrapper = $this->streamWrapperManager->getViaScheme($scheme);
273 273
274 if ($filename = tempnam($wrapper->getDirectoryPath(), $prefix)) {
274 if ($filename = tempnam($wrapper->realpath(), $prefix)) {
  • realpath() requires paramater $uri to be a string, providing NULL is off API.

    realpath() can return false this need to be validated as tempnam() needs a string.

  • Please register or sign in to reply
Please register or sign in to reply
Loading