[wp-trac] [WordPress Trac] #59756: function wp_is_stream() is causing a deprecated error when $path is null.

WordPress Trac noreply at wordpress.org
Fri Oct 27 18:54:51 UTC 2023


#59756: function wp_is_stream() is causing a deprecated error when $path is null.
----------------------------+------------------------------
 Reporter:  garymarkfuller  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:  6.3.2
 Severity:  normal          |  Resolution:
 Keywords:  php81           |     Focuses:
----------------------------+------------------------------
Changes (by jrf):

 * keywords:   => php81
 * focuses:  php-compatibility =>


Comment:

 @garymarkfuller Thanks for reporting this. This issue will need a
 backtrace to figure out where the error is coming from.

 The [https://developer.wordpress.org/reference/functions/wp_is_stream/
 wp_is_stream()] function is documented as only accepting a `string` and
 the error you are reporting means something somewhere is passing `null` to
 `wp_is_stream()`. This needs to be fixed at the source of the problem, not
 in the `wp_is_stream()` function.

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


More information about the wp-trac mailing list