| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2015-10-12 20:32 UTC] requinix@php.net
 
-Status: Open
+Status: Feedback
  [2015-10-12 20:32 UTC] requinix@php.net
  [2015-10-12 21:32 UTC] bugs dot php dot net at ss dot st dot tc
 
-Status: Feedback
+Status: Open
  [2015-10-12 21:32 UTC] bugs dot php dot net at ss dot st dot tc
  [2015-10-12 21:37 UTC] rasmus@php.net
  [2015-10-12 22:01 UTC] bugs dot php dot net at ss dot st dot tc
  [2015-10-12 22:11 UTC] rasmus@php.net
  [2015-10-12 22:35 UTC] bugs dot php dot net at ss dot st dot tc
  [2015-10-12 23:05 UTC] rasmus@php.net
  [2015-11-07 05:43 UTC] hzmester at freemail dot hu
  [2016-07-04 14:12 UTC] cmb@php.net
 
-Status:      Open
+Status:      Duplicate
-Assigned To:
+Assigned To: cmb
  [2016-07-04 14:12 UTC] cmb@php.net
  [2016-07-04 14:13 UTC] cmb@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
Description: ------------ Following examples work well in PHP 5, but fail to produce correct results in PHP 7. Test script: --------------- <?php echo preg_match('/((A)+)/', str_repeat('A', 1363)) ? 1 : 0, PHP_EOL; echo preg_match('/((A)+)/', str_repeat('A', 1364)) ? 1 : 0, PHP_EOL; echo preg_match('/((A)*)/', str_repeat('A', 1363)) ? 1 : 0, PHP_EOL; echo preg_match('/((A)*)/', str_repeat('A', 1364)) ? 1 : 0, PHP_EOL; echo preg_match_all('/((A)+)/', str_repeat('A', 1363)) ? 1 : 0, PHP_EOL; echo preg_match_all('/((A)+)/', str_repeat('A', 1364)) ? 1 : 0, PHP_EOL; echo preg_match_all('/((A)*)/', str_repeat('A', 1363)) ? 1 : 0, PHP_EOL; echo preg_match_all('/((A)*)/', str_repeat('A', 1364)) ? 1 : 0, PHP_EOL; Expected result: ---------------- Both PHP 5 and 7: 1 1 1 1 1 1 1 1 Actual result: -------------- PHP 5: 1 1 1 1 1 1 1 1 PHP 7: 1 0 1 0 1 0 1 0