|
@@ 1216-1226 (lines=11) @@
|
| 1213 |
|
|
| 1214 |
|
break; |
| 1215 |
|
} |
| 1216 |
|
if($format && $names) |
| 1217 |
|
{ |
| 1218 |
|
// Dealing with backtrack limit per AmigoJack 10-Jul-2010 comment on php.net preg-replace docs |
| 1219 |
|
do { |
| 1220 |
|
$result = preg_replace($format, $replacement, $content, -1); |
| 1221 |
|
} |
| 1222 |
|
// try to increase/double pcre.backtrack_limit failure |
| 1223 |
|
while(preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR && self::increase_backtrack_limit()); |
| 1224 |
|
|
| 1225 |
|
if ($result) $content = $result; // On failure $result would be NULL |
| 1226 |
|
} |
| 1227 |
|
} |
| 1228 |
|
|
| 1229 |
|
/** |
|
@@ 1326-1336 (lines=11) @@
|
| 1323 |
|
case 'application/vnd.ms-excel.sheet.macroenabled.12': |
| 1324 |
|
break; |
| 1325 |
|
} |
| 1326 |
|
if($format && $names) |
| 1327 |
|
{ |
| 1328 |
|
// Dealing with backtrack limit per AmigoJack 10-Jul-2010 comment on php.net preg-replace docs |
| 1329 |
|
do { |
| 1330 |
|
$result = preg_replace($format, $replacement, $content, -1); |
| 1331 |
|
} |
| 1332 |
|
// try to increase/double pcre.backtrack_limit failure |
| 1333 |
|
while(preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR && self::increase_backtrack_limit()); |
| 1334 |
|
|
| 1335 |
|
if ($result) $content = $result; // On failure $result would be NULL |
| 1336 |
|
} |
| 1337 |
|
} |
| 1338 |
|
|
| 1339 |
|
/** |