[wp-trac] [WordPress Trac] #57332: setcookie() not working with null

WordPress Trac noreply at wordpress.org
Fri Dec 16 01:52:43 UTC 2022


#57332: setcookie() not working with null
-------------------------------------+------------------------------
 Reporter:  kikanirita               |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback php81  |     Focuses:
-------------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:  reporter-feedback => reporter-feedback php81


Old description:

> After upgrade PHP 8.1+, I cannot pass null value in setcookie().
> I got the error in my site Deprecated: setcookie(): Passing null to
> parameter #2 ($value) of type string is deprecated in...

New description:

 After upgrade PHP 8.1+, I cannot pass `null` value in `setcookie()`.
 I got the error in my site `Deprecated: setcookie(): Passing null to
 parameter #2 ($value) of type string is deprecated in...`

--

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


More information about the wp-trac mailing list