note 76288 added to ref.pcre

From: Date: Mon, 09 Jul 2007 17:20:33 +0000
Subject: note 76288 added to ref.pcre
Groups: php.notes 
Request: Send a blank email to php-notes+get-128327@lists.php.net to get a copy of this message
Be aware that PHP 5.2.0 up to 5.2.3 PCRE is buggy when using a simple regex like: <?php if(preg_match("/((a+)?)+/", "a")){ echo "Matched"; } ?> Running a nested regex like this will result in a Segmentation Fault on those versions. The bug is reported to be fixed (http://bugs.php.net/bug.php?id=41796), but think twice before writing a regex like that one if your code needs to be compatible with these versions. ---- Server IP: 130.206.1.5 Probable Submitter: 83.58.156.182 ---- Manual Page -- http://www.php.net/manual/en/ref.pcre.php Edit -- https://master.php.net/note/edit/76288 Del: integrated -- https://master.php.net/note/delete/76288/integrated Del: useless -- https://master.php.net/note/delete/76288/useless Del: bad code -- https://master.php.net/note/delete/76288/bad+code Del: spam -- https://master.php.net/note/delete/76288/spam Del: non-english -- https://master.php.net/note/delete/76288/non-english Del: in docs -- https://master.php.net/note/delete/76288/in+docs Del: other reasons-- https://master.php.net/note/delete/76288 Reject -- https://master.php.net/note/reject/76288 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128327) next »