![]() |
preg_match fails on vb page
I calling a regex as part of some custom code. The expression fails when called on a vb page, and works just fine on a pure php page (with the same input string).
I am guessing there is something in the vb environment that affects how regex are called. Any idea what that might be? Thanks for your help |
Hmm...is your php page running on the same web server as vbulletin? Can you post the code segment and the string?
|
Never mind, my fault all along.
I was dealing with HTML encoded strings on the vb side, and pure ascii on the test side. I did find, however, that VB is disabling the regex mem/runtime limit in \includes\init.php. Be careful, if you run expensive regular expressions. Code:
@ini_set('pcre.backtrack_limit', -1); |
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|