|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-02 23:48 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2010-06-02 23:48 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
Description: ------------ One of my regular expressions leads to return of emptiness to functions preg_replace if the initial line contains more than 991 blanks. Example more low. The first line works, the second dies also I lose all contents. Test script: --------------- $text = 'test'.str_repeat(' ', 991).'test'; // work $text = 'test'.str_repeat(' ', 992).'test'; // empty :( if ($text = preg_replace('/(.*?\s+)"([^\s]+.*?)/', '$1<quot1>$2', $text)) { echo "GOOD\n"; } else { echo "BAD\n"; }