Edit report at http://bugs.php.net/bug.php?id=51777&edit=1

 ID:               51777
 User updated by:  trevor at ridgebizdev dot com
 Reported by:      trevor at ridgebizdev dot com
 Summary:          RegEx matching fails
 Status:           Bogus
 Type:             Feature/Change Request
 Package:          PCRE related
 Operating System: Windows XP
 PHP Version:      5.3.2

 New Comment:

preg_last_error() has been available only for months with PHP 5.2.0.  If
you notice my style of ${1}, you know I've been using these functions
since before 5.2.0.  Who demanded preg_last_error() and when?  Why don't
the preg_ functions use preg_last_error()?  preg_last_error() is
working, but it's only half of the process of finishing the preg_
functions.  Whether the expression fails to match or if the expression
engine crashes (which sounds like failing to match) then the argument
string is the return value--not the empty string.  Do you dig it?


Previous Comments:
------------------------------------------------------------------------
[2010-05-17 21:24:20] trevor at ridgebizdev dot com

preg_last_error() is stellar.  Why is it not used properly by the preg_
functions?

------------------------------------------------------------------------
[2010-05-17 08:22:26] m...@php.net

http://php.net/preg_last_error

------------------------------------------------------------------------
[2010-05-13 04:19:36] trevor at ridgebizdev dot com

Setting the pcre.backtrack_limit makes 51777 an installation feature
request; however, because no warning is fired, the report remains a bug.

------------------------------------------------------------------------
[2010-05-12 20:10:54] trevor at ridgebizdev dot com

[Pcre]

;PCRE library backtracking limit.

; http://php.net/pcre.backtrack-limit

;pcre.backtrack_limit=100000



;PCRE library recursion limit.

;Please note that if you set this value to a high number you may consume
all

;the available process stack and eventually crash PHP (due to reaching
the

;stack size limit imposed by the Operating System).

; http://php.net/pcre.recursion-limit

;pcre.recursion_limit=100000



I have nothing set (I must be using the default).  I use Windows XP
Professional with 4GB RAM and Core2Duo.

------------------------------------------------------------------------
[2010-05-12 09:14:13] m...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Works here. Do you have a pcre.backtrack_limit set?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=51777


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51777&edit=1

Reply via email to