[wp-trac] [WordPress Trac] #35755: wp_tempnam produces filenames longer than 255 characters

WordPress Trac noreply at wordpress.org
Thu Jul 6 01:17:42 UTC 2023


#35755: wp_tempnam produces filenames longer than 255 characters
-------------------------------------------------+-------------------------
 Reporter:  doems                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.3
Component:  Filesystem API                       |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback has-testing-info                      |
-------------------------------------------------+-------------------------
Changes (by costdev):

 * keywords:  has-patch has-unit-tests dev-feedback needs-testing-info =>
     has-patch has-unit-tests dev-feedback has-testing-info


Comment:

 == Testing Instructions
 These steps define how to reproduce the issue, and indicate the expected
 behavior.

 === Steps to Reproduce
 1. Install and activate
 [https://core.trac.wordpress.org/attachment/ticket/35755/test_35755.zip
 the test plugin].
 2. 🐞 Check the results of the admin notice.

 === Expected Results
 When reproducing a bug:
 - ❌ The notice should display the following:

  Length of filename to be created: 311 ❌
  Was the file created? No ❌

 When testing a patch to validate it works as expected:
 - ✅ The notice should display the following:

  Length of filename to be created: 252 ✅
  Was the file created? Yes ✅

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/35755#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list