Doc #79594 [Ver->Csd]: Uncaught TypeError: preg_split() expects parameter 3 to be int, null given
Edit report at https://bugs.php.net/bug.php?id=79594&edit=1
ID: 79594
Updated by: cmb@php.net
Reported by: vedad at kajtaz dot net
Summary: Uncaught TypeError: preg_split() expects parameter 3
to be int, null given
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: PCRE related
Operating System: FreeBSD
PHP Version: 7.4.5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2020-05-13 15:21:21] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
------------------------------------------------------------------------
[2020-05-13 15:06:33] vedad at kajtaz dot net
Description:
------------
The preg_split documentation:
https://www.php.net/manual/en/function.preg-split.php
states:
> A limit of -1 or 0 means "no limit" and, as is standard across PHP, you can use NULL
> to skip to the flags parameter.
However, passing null with strict_type throws a \TypeError:
Uncaught TypeError: preg_split() expects parameter 3 to be int, null given
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79594&edit=1
Thread (4 messages)