php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74056 Return of preg_match_all can be integer
Submitted: 2017-02-07 13:35 UTC Modified: 2017-02-08 14:45 UTC
From: vasilvestre at laposte dot net Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 7.0.15 OS: Ubuntu 16.04
Private report: No CVE-ID: None
 [2017-02-07 13:35 UTC] vasilvestre at laposte dot net
Description:
------------
---
From manual page: http://www.php.net/function.preg-match-all
---
If you try the test script, you will see that preg_match_all return integer.

Test script:
---------------
echo preg_match_all("/[A-Za-z]/","I am");


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-07 13:38 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2017-02-07 13:38 UTC] requinix@php.net
That's right, it does return an integer.

What bug are you trying to report?
 [2017-02-08 14:28 UTC] vasilvestre at laposte dot net
-Status: Feedback +Status: Closed
 [2017-02-08 14:28 UTC] vasilvestre at laposte dot net
my bad.. wrong doc lol
 [2017-02-08 14:45 UTC] requinix@php.net
-Status: Closed +Status: Not a bug -Package: Documentation problem +Package: PCRE related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 10:01:30 2024 UTC