Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal 7 port of #2842942: Fix tempnam() usage in PHP7.1
Problem/Motivation
Using tempnam() in PHP7.1 can result in PHP warnings if it falls back to the system temporary directory. This is the case for some of our tests.
Locale.LocaleExportFunctionalTest
✓ - setUp
✗
testExportTranslation
exception: [Notice] Line 1343 of modules/locale/locale.test:
tempnam(): file created in the system's temporary directory
✓ - testExportTranslationTemplateFile
See https://bugs.php.net/bug.php?id=69489
See https://www.drupal.org/pift-ci-job/587879
Proposed resolution
Don't use temporary://
as the stream wrapper is not defined.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comments
Comment #2
alexpottComment #3
alexpottComment #4
hazong CreditAttribution: hazong as a volunteer commentedHi,
I would like to work on this issue.
Comment #5
stefan.r CreditAttribution: stefan.r commentedComment #6
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedCommitted to 7.x - thanks!