|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66029 preg_match shows random values
Submitted: 2013-11-04 11:15 UTC Modified: 2018-06-24 04:22 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: poiuty at lepus dot su Assigned: cmb (profile)
Status: No Feedback Package: PCRE related
PHP Version: 5.4.21 OS: Debian 7
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.
Block user comment
Status: Assign to:
Bug Type:
From: poiuty at lepus dot su
New email:
PHP Version: OS:


 [2013-11-04 11:15 UTC] poiuty at lepus dot su
if you press F5 -> you can see that preg_match shows different values
I recorded it on video

Test script:
$text = '*/10 * * * *';
if(preg_match('/[^0-9\*\/]/', $text )) echo 'preg_match GOOD! <br/>'; else echo "preg_match BAD!<br/>";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-20 10:44 UTC]
-Package: Regexps related +Package: PCRE related
 [2018-03-21 13:14 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-03-21 13:14 UTC]
This feature appears to be controversial, and as such would
require the RFC process[1].  Anybody is welcome to start it! For
the time being, I'm suspending this ticket.

[1] <>
 [2018-06-24 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 25 09:01:29 2024 UTC