|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-30 11:34 UTC] cmb@php.net
[2016-07-30 12:45 UTC] ju1ius at laposte dot net
[2016-08-20 15:17 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2016-08-20 15:17 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
Description: ------------ I tried this with php 5.3.8 and 5.3.2 with the same results. Test script: --------------- <?php $content = '<div class="private-sales-index"> <div class="box"> <div class="content"> <h1>Welcome to our Exclusive Online Store</h1> <p>If you are a registered member, please <a href="{{store url="customer/account/login"}}">log in here</a>.</p> <p class="description">Magento is the leading hub for exclusive specialty items for all your home, apparel and entertainment needs!</p> </div> </div> </div>'; $content = mbereg_replace("\r\n", ' ', $content); $content = mbereg_replace("\n", ' ', $content); var_dump($content); var_dump(mb_ereg('(.*?\s){100}', $content, $_m)); var_dump($_m); Expected result: ---------------- $content should be truncated to string that contains ~100 words. Actual result: -------------- Script executing hangs.