|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 23 15:01:24 2023 UTC