Andrei Zmievski
ac5c0797d8
More Unicode work.
2006-08-29 22:16:26 +00:00
Antony Dovgal
996d8d1226
fix PCRE tests
2006-08-29 22:12:31 +00:00
Andrei Zmievski
ff93bd421b
Add Unicode support for preg_match[_all]
2006-08-28 20:36:50 +00:00
Rob Richards
559937c8a5
tsrmls fix
2006-07-20 22:40:44 +00:00
Marcus Boerger
c2c5201872
- TSRM fixes
2006-07-20 22:07:09 +00:00
Marcus Boerger
8ff86b1e31
- WS
2006-07-20 21:52:40 +00:00
Marcus Boerger
6a0f2a5982
- Fix unicode expectations
2006-07-20 21:39:48 +00:00
Marcus Boerger
b5b5944ddf
- Clean up (after consulting Andrei)
...
. Change the handlers SPL uses to php_pcre_*_impl(pcre_cache_entry*,....)
. All refactored funcs (match, split, replace, grep) use the above
. Change (zend|php)_error() to php_error_docref()
. Move from old to new param parsing api
. Fix memleaks in unicode mode
2006-07-20 21:19:05 +00:00
Marcus Boerger
8dc11c8c28
- WS
2006-07-19 20:30:52 +00:00
Antony Dovgal
18d1c420d6
fix test
2006-07-18 09:23:05 +00:00
Nuno Lopes
068dfca1d7
MFB
2006-07-17 11:39:49 +00:00
Marcus Boerger
12edfef4d3
- TSRM Fix
2006-07-16 20:57:40 +00:00
Nuno Lopes
cb32fbe9d5
MFB
2006-07-16 19:36:23 +00:00
Marcus Boerger
ac3a58e52d
- Little bit refactoring: Two new PHPAPI functions:
...
. php_pcre_match
. php_pcre_split
2006-07-16 19:20:05 +00:00
Hannes Magnusson
302deb04d8
fix tests
2006-07-03 16:03:39 +00:00
Nuno Lopes
57801820f5
MFB
2006-07-03 14:55:49 +00:00
Hannes Magnusson
703e08015d
Fix test
2006-06-26 23:42:43 +00:00
Nuno Lopes
06f93f77f3
MFB: fix bug #37800
2006-06-15 15:35:50 +00:00
Nuno Lopes
4ee2074d12
MFB
2006-06-14 18:07:45 +00:00
Nuno Lopes
3b69def3e7
MFB: fix mem leak
2006-06-14 18:04:01 +00:00
Nuno Lopes
6b34ab5816
MFB: remove pcre_dfa_exec.c
2006-06-14 16:28:16 +00:00
Nuno Lopes
b5f20ceb48
MFB
2006-06-13 22:05:26 +00:00
Dmitry Stogov
943960c324
Added automatic module globals management
2006-06-13 13:12:20 +00:00
Antony Dovgal
b220c7779f
no need to check it for not-NULL (as was pointed by Nuno)
2006-05-29 21:31:30 +00:00
Antony Dovgal
0e639cea57
add test
2006-05-29 20:31:33 +00:00
Antony Dovgal
d5462c527a
return NULL in case of error (and fix leak/non-null-terminated string error)
2006-05-29 20:26:12 +00:00
Ilia Alshanetsky
af1877567e
MFB: Fixed bug #37586 (Bumped minimum PCRE version to 6.6, needed for
...
recurssion limit support).
2006-05-28 15:34:19 +00:00
Andrei Zmievski
96efa426b8
Add pcre_last_error() and backtrack/recursion limit settings.
2006-05-09 18:28:11 +00:00
Andrei Zmievski
589d830c32
Disallowed numeric named captures.
2006-04-07 21:20:10 +00:00
Andrei Zmievski
84a6481eff
That is not the bug you're looking for.
2006-04-06 22:37:42 +00:00
Andrei Zmievski
a389cb5a8c
Even more stuff from Friedl.
2006-04-06 22:02:02 +00:00
Andrei Zmievski
7272c63055
More stuff from Friedl..
2006-04-06 21:23:56 +00:00
Andrei Zmievski
f37190dc57
MFB
2006-04-06 21:16:28 +00:00
Dmitry Stogov
22055cb8fd
Dropped register_long_arrays, added E_CORE for all dropped setting
2006-03-16 09:44:42 +00:00
Pierre Joye
bb1ec86f9d
- remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
...
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Sebastian Bergmann
1ed4c0b446
MFB: Fix build and sync parameters with config0.m4.
2006-03-06 22:50:43 +00:00
Andrei Zmievski
18283d39ad
Import PCRE 6.6 and make adjustments.
2006-03-06 21:34:07 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
56b0eb7248
Fixed test file
2006-02-20 08:39:38 +00:00
Andrei Zmievski
31f74bc7a5
NULL byte should be escaped to \000 instead of \0 in case it is followed
...
by an octal digit. (found by Jeffrey Friedl)
2006-02-17 21:17:44 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
foobar
a208d9a966
- Nuke php3 legacy
2005-12-06 02:28:26 +00:00
Michael Wallner
dd947297fe
- export everything we've got aliases for
2005-12-01 21:08:17 +00:00
Michael Wallner
4323354ee0
- use php_pcre aliases
2005-12-01 20:53:04 +00:00
Michael Wallner
9bae4e12e4
- ext/filter will need those exports
...
# php_compat.h still prevents linking
2005-12-01 20:07:01 +00:00
Antony Dovgal
0c110a93d2
MF51: change "-o" to "||" to support weird systems with broken test
2005-11-29 18:38:48 +00:00
foobar
7b7b6c20a6
- Renamed config.m4 to config0.m4
...
# PCRE configure tests must be run before e.g. ext/filter
2005-11-17 10:01:47 +00:00
foobar
1044416541
- Fix build problems with pecl/filter/
2005-11-16 22:14:24 +00:00
Dmitry Stogov
9cb1032718
Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO)
2005-10-28 08:31:01 +00:00
Marcus Boerger
56325bc275
- Drop one cache related function which is not really neccessary
2005-10-12 22:45:15 +00:00
Marcus Boerger
eb48d356bd
- Add/expose function to compile and access pcre_cache_entry structs
2005-10-12 22:37:30 +00:00
Dmitry Stogov
866908ca97
Fixed bug #34790 (preg_match_all(), named capturing groups, variable assignment/return => crash)
2005-10-11 06:46:18 +00:00
Dmitry Stogov
6b622046dc
zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string).
2005-08-22 12:22:16 +00:00
foobar
03cec74a0d
Nuked EOLs from error messages
2005-08-18 13:34:04 +00:00
Antony Dovgal
df39154c83
nuke unused variables
2005-08-12 20:58:05 +00:00
Andrei Zmievski
2ae8d36a3c
Remove old internal.h file.
2005-08-09 17:29:44 +00:00
Sebastian Bergmann
77dfdccdd4
MFB: Sync with config.m4.
2005-08-09 09:46:52 +00:00
Andrei Zmievski
e623e5352d
Upgrade to PCRE version 6.2.
...
# Don't worry, upgrade for other branches is coming
2005-08-08 23:59:04 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
6cea418c31
Netware also uses autoconf based config now
2005-06-30 14:11:13 +00:00
Ilia Alshanetsky
f28249f779
kill unused var.
2005-06-01 03:01:29 +00:00
foobar
156a908997
- Fixed bug #33200 (preg_replace(): magic_quotes_sybase=On makes 'e' modifier misbehave)
2005-05-31 12:54:56 +00:00
Sebastian Bergmann
ce1dfefd26
Sync with config.m4 (missing MATCH_LIMIT broke the Win32 build).
2005-05-28 06:30:46 +00:00
Andrei Zmievski
b7644c85e5
No need to include ucp.c and ucptypetable.c here.
2005-05-27 18:02:02 +00:00
Andrei Zmievski
4e72f8a298
Upgrade library to version 5.0.
2005-05-27 17:46:43 +00:00
Andrei Zmievski
79742f81a2
Flush regexp cache if we detect corruption.
2005-05-24 21:07:32 +00:00
Andrey Hristov
c449002566
add test
...
#forgot to add this one
2005-03-12 12:58:06 +00:00
Andrey Hristov
9e939133d2
FR 32275 - fifth parameter to preg_replace() to count number of replaces
...
made.
#it would be nice if someone of the doc team documents it. thanks!
2005-03-12 12:03:50 +00:00
foobar
a139dbf9cc
- Fix outside-source-tree builds. Always include generated header files
...
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
Antony Dovgal
ffb2cf7a94
return empty string when got empty parameter
2004-12-24 19:45:54 +00:00
Ilia Alshanetsky
5484568c5c
Avoid causing a crash.
2004-12-10 00:36:51 +00:00
Antony Dovgal
5dbe3f6f4f
fix 1-byte leak
2004-12-09 15:07:56 +00:00
Joe Orton
2685ca935f
Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
...
to support multi-ABI platforms.
2004-11-03 14:32:52 +00:00
Andrei Zmievski
ace6ff598c
MFB.
2004-08-25 20:48:48 +00:00
Marcus Boerger
1d913a9c0b
MFB: TSRM fix
2004-08-24 21:49:09 +00:00
Andrei Zmievski
f30355a7df
MFB.
2004-08-24 20:58:59 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Andrei Zmievski
279770743f
MFB (better error checking in pcre_fullinfo() calls).
2004-06-22 22:21:58 +00:00
Wez Furlong
6686b3f722
spot the vim user
2004-05-07 17:47:27 +00:00
Wez Furlong
ce05cea7ee
Fix Bug #28317 : Avoid recursion in libpcre on windows platform.
2004-05-07 17:47:02 +00:00
Rasmus Lerdorf
191a661f8c
MFB: Fix for bug #27810
2004-04-23 18:08:58 +00:00
Sebastian Bergmann
e4ad9209ed
ZTS fix.
2004-02-01 08:34:47 +00:00
Moriyoshi Koizumi
65e22c3316
- Forgot to add test case.
2004-02-01 03:03:15 +00:00
Moriyoshi Koizumi
5d9495dfe7
- Binary compatibility stuff, for safety.
2004-02-01 03:02:47 +00:00
Moriyoshi Koizumi
0330fb2cbf
- Fix bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into octets).
2004-01-31 22:36:33 +00:00
Moriyoshi Koizumi
8e44a6ba0a
- POSIX / ISOX compliancy. This is needed to correctly handle UTF-8 characters.
2004-01-31 21:56:42 +00:00
Ilia Alshanetsky
e691cbd4ee
Fixed bug #27011 (64bit int/long confusion in preg_match*() functions).
2004-01-28 21:47:36 +00:00
Ilia Alshanetsky
0715651785
Fixed Bug #26927 (preg_quote() does not escape \0).
2004-01-16 02:29:50 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Andrei Zmievski
9fc9e4b2cf
MFB
2003-12-16 22:20:30 +00:00
Andrei Zmievski
e9fb9a7fa7
*** empty log message ***
2003-12-16 21:53:27 +00:00
Wez Furlong
05b9b20ed8
Add new (optional!) win32 build infrastructure.
...
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
foobar
78cb38105d
style fix
2003-11-25 20:02:22 +00:00
foobar
df8809650c
- Fixed bug #25504 (pcre_match_all() crashes when passed only 2 parameters)
2003-09-12 01:31:54 +00:00
Zeev Suraski
8767205afa
Fix Win32 linkage problems
2003-08-31 12:41:53 +00:00
Sascha Schumann
b9a67764d5
Fix error message
2003-08-28 17:09:44 +00:00
Andrei Zmievski
505fd434ac
MFB
2003-06-29 00:09:41 +00:00
Sterling Hughes
0ec0a3097c
define this here too
2003-06-28 04:30:51 +00:00
Andrei Zmievski
357f62734a
Upgrading PCRE library to version 4.3.
2003-06-27 16:31:24 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Ilia Alshanetsky
2e361db1fe
Fixed bug #23788 (str|preg_replace clober the array elements).
...
# Should this be MFBed to 4.3 branch?
2003-05-25 21:48:57 +00:00
Andrei Zmievski
8571f5eac2
Put some guards in place.
2003-05-20 18:11:09 +00:00
Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
2003-03-25 08:07:13 +00:00
foobar
8678f51835
Fixed bug #22131 , enable use of shared lib with pcre.
2003-02-09 14:59:07 +00:00
Ilia Alshanetsky
4fde1b8de1
zend_error() -> php_error_docref().
2003-01-24 05:21:08 +00:00
Moriyoshi Koizumi
7abc6e4338
Made the test's name more descriptive
2003-01-23 19:00:06 +00:00
Moriyoshi Koizumi
0344311bde
Removed pointless checks
2003-01-23 18:48:43 +00:00
Moriyoshi Koizumi
24ae309037
Added test case for bug #21732
2003-01-23 18:22:55 +00:00
Moriyoshi Koizumi
e3e364f77b
Fixed bug #21758
2003-01-20 16:45:21 +00:00
Ilia Alshanetsky
3d8e54f3a2
Changed php_error to php_error_docref.
2003-01-19 00:45:53 +00:00
Ilia Alshanetsky
b2ecf47755
Fixed bug #21732 (Added a sanity check, that prevents parameter mismatch).
2003-01-18 20:48:52 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Ilia Alshanetsky
2ca45412ed
Added a test case for bug #20528 .
2002-11-22 00:08:57 +00:00
Ilia Alshanetsky
c7dd366c1a
Fixed bug #20528 .
2002-11-21 23:51:52 +00:00
Edin Kadribasic
b8d3c75a6c
Nuke one more win32 linking warning.
2002-11-18 15:53:00 +00:00
Derick Rethans
a88e5c6e8d
- Remove \n from error messages
2002-11-10 21:24:54 +00:00
Andrei Zmievski
a60968287c
Fix memory leak in non-ZTS mode.
2002-11-09 00:43:37 +00:00
Marcus Boerger
15b2e277a4
fix compiler warning
2002-10-24 19:15:40 +00:00
Andrei Zmievski
c65c182693
Upgrade to version 3.92.
2002-10-15 13:59:58 +00:00
Andrei Zmievski
6863d70ef3
Use a copy of locale instead of the original. Fixes bug #19482 .
2002-10-07 17:16:23 +00:00
Wez Furlong
a2c6a6c186
Update bundled pcrelib to 3.9.
...
# Tested under Linux only
2002-09-14 14:45:35 +00:00
Andrei Zmievski
3f4a2b1b6a
@- Added ability to use Perl-style ${n} subpattern references in the
...
@ replacement string for preg_replace(). Takes care of bug #18442 . (Andrei)
2002-09-11 14:41:25 +00:00
Anantha Kesari H Y
76d94e57ab
NetWare related additions/modifications
2002-09-05 11:35:10 +00:00
Edin Kadribasic
35cd16f6bf
MFB (patch by Troels Arvin <troels@arvin.dk>).
...
Added pcre include path to global list of includes in order to allow
use of external pcre libs.
2002-07-23 13:07:29 +00:00
Andrei Zmievski
3650bab76f
Fix Bug #18341 .
...
@- Fixed cases where preg_split() incorrectly terminated final element if
@ it contained null byte. (Andrei)
2002-07-14 22:36:47 +00:00
foobar
b5e46c5e05
Fix build in ZTS mode
2002-06-13 01:04:40 +00:00
Andrei Zmievski
4f4b983a39
This patch adds ability to capture string offsets in the preg_match_*()
...
results.
2002-06-12 20:04:20 +00:00
Markus Fischer
9b1ec11184
- Typo.
2002-06-10 22:43:49 +00:00
Andrei Zmievski
001b4c71e4
This code adds string offset capturing in preg_split() results. Original
...
patch by David Brown, modified by me.
2002-05-23 17:22:05 +00:00
Andrei Zmievski
1668570e4d
Changing email address.
2002-05-13 17:28:38 +00:00
Andrei Zmievski
4acbbcf5a9
Revert bogus patch.
2002-04-19 17:23:22 +00:00
Derick Rethans
18a3f085aa
- Fix warnings in VC
2002-04-19 14:57:46 +00:00
jim winstead
d3400b2b5f
the 'setup' script was removed more than two years ago.
...
these can be safely removed from the 4.2 branch, too.
2002-03-16 00:21:40 +00:00
Sascha Schumann
1d06a3166c
remove old makefiles
2002-03-12 16:50:43 +00:00
Sascha Schumann
9d9d39a0de
Please welcome the new build system.
...
If you encounter any problems, please make sure to email sas@php.net
directly.
An introduction can be found on
http://schumann.cx/buildv5.txt
2002-03-07 14:20:02 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Andrei Zmievski
260aee10fe
Fix a long-standing infelicity that resulted in extra regex information
...
not being passed to PCRE functions.
2002-02-12 03:15:27 +00:00
Andrei Zmievski
51f1739983
Expose pcre_get_compiled_regex as an API function.
2002-02-12 03:00:05 +00:00
Andrei Zmievski
d0ed5b984c
- Fixed a bug with matching string containing null bytes.
2002-01-15 15:40:31 +00:00
Zeev Suraski
2f8284ca0a
Fix a warning and remove a printf() that slipped in...
2001-12-22 03:04:14 +00:00
Andrei Zmievski
0858fb4b73
@- Added flags parameter to preg_grep(). The only flag currently is
...
@ PREG_GREP_INVERT that will make the function return entries that
@ did not match. (Andrei)
2001-12-18 19:17:57 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
foobar
f1397d5339
Unified the configure messages.
2001-11-30 19:00:13 +00:00
Andrei Zmievski
3942e2a8bd
Fixed bug #13635 .
2001-11-10 23:45:00 +00:00
Rasmus Lerdorf
02e25f0a1e
# Butt-ugly looking code here, but I need regular expressions to do this.
...
Re-instated safe-mode realm mangling as it was in php 2 and 3 albeit
in a somewhat more robust way.
@ Re-instated safe-mode realm mangling (Rasmus)
2001-10-20 22:01:56 +00:00
Andrei Zmievski
a90e5f5a6b
@- Fixed a bug in preg_replace() that would change the type of the replacement
...
@ array entries to string. (Andrei)
2001-10-17 18:20:19 +00:00
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
...
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
Sascha Schumann
23b9300fd1
more tsrm cleanup
2001-08-06 03:50:52 +00:00