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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 00:00:02 2026 UTC