php.net |  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
Votes:2
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
 [2013-11-04 11:15 UTC] poiuty at lepus dot su
Description:
------------
if you press F5 -> you can see that preg_match shows different values
I recorded it on video
http://www.youtube.com/watch?v=qMZVgWXtF3c

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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-20 10:44 UTC] cmb@php.net
-Package: Regexps related +Package: PCRE related
 [2018-03-21 13:14 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-03-21 13:14 UTC] cmb@php.net
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] <https://wiki.php.net/rfc/howto>
 [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: Mon Dec 30 14:01:28 2024 UTC