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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vasilvestre at laposte dot net
New email:
PHP Version: OS:

 

 [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 19:01:28 2024 UTC