|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-09 21:02 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
Description: ------------ It seems like bug in evaluation regular expresion in preg_match() function. See code. Reproduce code: --------------- /* 1. this produces warning */ if (preg_match("/(?<![^f]oo)(bar)/i", "xoobar")>0) echo "Match3"; /* 2. this does not produces warning */ if (preg_match("/(?<![^fo]o)(bar)/i", "xoobar")>0) echo "Match4"; Expected result: ---------------- Case 1 without warning Case 2 without warning Actual result: -------------- Case 1 with warning Case 2 without warning