Commit Graph

397 Commits

Author SHA1 Message Date
Nuno Lopes
4ff9ad5bf1 fix bug #47229: preg_quote should escape '-' 2009-01-28 22:39:33 +00:00
Rob Richards
c87d6031e5 MFH: export php_pcre_free to make mbstring happy 2009-01-11 13:59:00 +00:00
andy wharmby
1f56f22fa3 New pcre extension tests. Tested on Windows, Linux and Linux 64-bit 2009-01-07 14:52:26 +00:00
Andi Gutmans
8accd1addc - Remove NO_RECURSE as it causes a huge performance impact. Up to 50%
with Wordpress. Stack size is not really anymore of an issue than on
  Linux with FastCGI (php-cgi.exe). For ISAPI it may be an issue but we
  have other places where we may eat up stack.
2009-01-02 04:59:41 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Nuno Lopes
c61d5627ba export the pcre API when compiling with gcc 4. this fixes e.g. the linkage of APC (reported by shire) 2008-12-10 10:16:14 +00:00
Felipe Pena
fc2fb50d09 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-11-17 11:28:01 +00:00
Felipe Pena
ade487e693 - Opss, reverted accidental changes 2008-11-03 13:07:28 +00:00
Felipe Pena
7a37fa2d6b - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:35:40 +00:00
Arnaud Le Blanc
261f0c32a5 initialize optional vars 2008-10-21 22:08:20 +00:00
Nuno Lopes
8a77e55566 clean some dead code (with static analysis help) 2008-09-23 15:18:26 +00:00
Nuno Lopes
c778b3eb19 upgrade to PCRE 7.8. this includes a security improvement. I'll upgrade HEAD later (not urgent..) 2008-09-09 07:55:10 +00:00
Nuno Lopes
1e3ebc2373 kill dead variables. found by LLVM's clang static analyzer 2008-09-02 19:10:38 +00:00
Nuno Lopes
426a1251f6 remove unicode skipif, as the test doesnt require such support 2008-08-31 15:28:35 +00:00
Marcus Boerger
42eb47d500 - MFH preg_filter()
# As discussed with Lukas
# [DOC] check out the test
2008-08-29 12:13:54 +00:00
Nuno Lopes
f797495527 after rereading the documentation about preg_grep(), lets match the behavior in HEAD (return the original array elements instead of the new string).
tune the test accordingly
2008-08-14 14:37:39 +00:00
Nuno Lopes
31c657b3bb Fixed bug #44925 (preg_grep() modifies input array) 2008-08-14 13:12:42 +00:00
Felipe Pena
e304515ddb - MFH: Added parameter TSRMLS_DC in zend_is_callable() 2008-08-02 04:46:07 +00:00
Dmitry Stogov
d5ef2f466c Added support for lambda functions and closures 2008-07-14 09:49:03 +00:00
Nuno Lopes
d771fa6da1 fix CVE-2008-2371. patch by Tavis Ormandy
# currently there's no release of PCRE with this fix. PCRE's author recommended applying this patch in the meantime
2008-07-06 15:23:31 +00:00
Nuno Lopes
053dc572ca upgrade to PCRE 7.7 2008-07-06 15:17:25 +00:00
Felipe Pena
235aab6c0f - New parameter parsing API (to preg_replace*)
- Fixed related tests
2008-06-30 17:14:48 +00:00
Felipe Pena
7ddf985e05 - zend_arg_defs.c is unnecessary now 2008-06-30 12:15:53 +00:00
Pierre Joye
c9ec9fed7b - set PHP_[EXTNAME] to yes for spl, pcre and reflection (always on), this variable is required by ADD_EXTENSION_DEP 2008-06-23 10:22:42 +00:00
Jani Taskinen
f047195f55 MFH: simplify, readability 2008-06-02 14:12:20 +00:00
Hannes Magnusson
49961368be Add arginfo & fix protos 2008-06-01 18:47:20 +00:00
Antony Dovgal
8e6ea84fdd MFH: use bundled PCRE library when both yes & no passed as argument,
look for headers and the lib otherwise
2008-05-23 19:07:27 +00:00
Elizabeth Marie Smith
3adf07b5c6 Fix reflection (always static, never shared) and disable turning off pcre and spl (also always static, never shared) 2008-05-02 14:05:53 +00:00
Marcus Boerger
aa64c6727c - MFH No longer allow to disable pcre 2008-04-10 19:42:32 +00:00
Nuno Lopes
634fef42d6 fix bug #44214: crash with preg_replace_callback and global variables 2008-03-08 13:01:59 +00:00
Nuno Lopes
d204214d7f implement #44336: optimize utf8 string matching
add PREG_BAD_UTF8_OFFSET_ERROR constant
2008-03-08 11:58:12 +00:00
Nuno Lopes
0d0a7a432a add new tests 2008-03-08 11:50:20 +00:00
Dmitry Stogov
bcade81501 Removed unnecassary strlen() 2008-03-03 11:11:43 +00:00
Felipe Pena
3fd8ccb092 Fix test 2008-02-21 14:22:41 +00:00
Antony Dovgal
9609e195e9 fix test 2008-02-21 13:39:04 +00:00
Felipe Pena
bc8a62f4b1 MFB: Fixed Bug #44191 (preg_grep messes up array index) 2008-02-20 22:12:17 +00:00
Felipe Pena
d427b55b1a New test 2008-02-20 21:57:05 +00:00
Nuno Lopes
3f7b92c06c upgrade to PCRE 7.6.
#changes to code are minimal. this fixes a security bug
2008-01-29 20:18:02 +00:00
Nuno Lopes
2c1a5c0248 spread some static keywords 2008-01-25 19:38:26 +00:00
Nuno Lopes
5ad7fb31c3 MFB5.2: fix script for files with short names 2008-01-14 09:40:29 +00:00
Nuno Lopes
18107c0b44 Fixed bug #42945 (preg_split() swallows part of the string) 2008-01-13 14:44:29 +00:00
Nuno Lopes
4c501a0ab6 upgrade PCRE to version 7.5 2008-01-13 12:44:57 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Jani Taskinen
dcd3b197e7 MFH:- Fixed bug #43365 (Several enums have trailing commas) 2007-11-26 10:59:04 +00:00
Robert Nicholson
6cfced8eff Add some more pcre tests 2007-11-21 18:22:01 +00:00
Nuno Lopes
66a24c86a6 Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines) 2007-10-07 13:57:10 +00:00
Nuno Lopes
51051fc8bc now fix the thread-safe build..
#sorry for the noise, but I didnt commit patches to PHP for a long time..
2007-10-07 12:20:11 +00:00
Nuno Lopes
3adfe9c0f1 fix the previous patch: the rc var doesnt need to be passed to the make_subpats_table() 2007-10-07 12:14:02 +00:00
Nuno Lopes
424db6feb9 fix bug #37911: preg_replace_callback ignores named groups 2007-10-07 11:48:27 +00:00