Antony Dovgal
b4974d5e68
MFH: fix #39112 (typo in error message)
2006-10-10 12:44:02 +00:00
Nuno Lopes
c55eda9f3b
fix memleak of pcre study data
2006-09-06 16:30:59 +00:00
Ilia Alshanetsky
45debc52ef
Upgrade PCRE lib to 6.7
2006-08-30 20:00:23 +00:00
Antony Dovgal
f231b76ba6
fix leak, add test
2006-08-30 16:46:59 +00:00
Marcus Boerger
6fb763c4f9
- MFH 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 22:53:07 +00:00
Antony Dovgal
b45268a07a
fix test
2006-07-18 09:22:32 +00:00
Nuno Lopes
7a38509835
new test
2006-07-17 11:39:13 +00:00
Marcus Boerger
bf4c9ef686
- MFH: Little bit refactoring: Two new PHPAPI functions:
...
. php_pcre_match
. php_pcre_split
2006-07-16 21:09:30 +00:00
Nuno Lopes
717ca4ef55
new tests. almost 90% of code coverage
2006-07-16 19:35:09 +00:00
Hannes Magnusson
87bc74ea7a
fix tests
2006-07-03 16:03:51 +00:00
Nuno Lopes
919d737505
more testing
2006-07-03 14:46:44 +00:00
Nuno Lopes
9990b3f431
new tests and fix the locales test where the pt local isnt available.
2006-07-03 13:04:45 +00:00
Hannes Magnusson
000957818e
MFH: fix test
2006-06-26 23:42:59 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
Nuno Lopes
c3ed91477a
fix bug #37800 : preg_replace() limit parameter odd behaviour
...
#this is a regression in PHP_5_2 and HEAD branches only
2006-06-15 15:33:25 +00:00
Nuno Lopes
a943d234f5
fix memory leak uncovered by the pcre_extra.phpt test
2006-06-14 17:52:56 +00:00
Nuno Lopes
a7bc286638
more tests (and fix 2 from yesterday)
2006-06-14 17:37:53 +00:00
Nuno Lopes
7406f3771a
remove the pcre_dfa_exec.c file, as it is needed (we dont expose that API)
2006-06-14 16:26:22 +00:00
Nuno Lopes
c93dc5d873
add new tests, increasing coverage by about 10%
2006-06-13 21:55:38 +00:00
Antony Dovgal
43b660b6ea
MFH: no need to check it for not-NULL
2006-05-29 21:31:49 +00:00
Antony Dovgal
fb696afd10
add test
2006-05-29 20:31:48 +00:00
Antony Dovgal
8ca3826a28
MFH: return NULL in case of error
2006-05-29 20:26:32 +00:00
Ilia Alshanetsky
1ad21d9b12
Fixed bug #37586 (Bumped minimum PCRE version to 6.6, needed for recurssion
...
limit support).
2006-05-28 15:33:56 +00:00
Edin Kadribasic
51ed0ebad8
Use heap insted of stack for recursion in hope of avoid stack overflow crashes
2006-05-18 21:50:51 +00:00
Marcus Boerger
0de69fe97d
- MFH pcre_get_compiled_regex_cache() support
2006-05-09 23:53:40 +00:00
Andrei Zmievski
f9de2cc142
MFH
2006-05-09 18:29:26 +00:00
Andrei Zmievski
6a4faee367
MFH
2006-04-11 21:33:46 +00:00
Andrei Zmievski
4033bfbda0
I guess we only need this on HEAD.
2006-04-06 21:35:27 +00:00
Andrei Zmievski
d288f66c7c
Fix a bug that would not fill in the fifth argument to preg_replace()
...
properly, if the variable was not declared previously.
2006-04-06 21:10:45 +00:00
Sebastian Bergmann
b8be6d3664
Fix build and sync parameters with config0.m4.
2006-03-06 22:49:16 +00:00
Andrei Zmievski
89a4054106
MFH (Import PCRE 6.6)
2006-03-06 21:45:57 +00:00
Dmitry Stogov
089f1283ad
Fixed test file
2006-02-20 08:39:06 +00:00
Andrei Zmievski
f10bab6f97
MFH.
2006-02-17 21:18:09 +00:00
Andrei Zmievski
6c180238fd
TODO
2006-02-06 19:02:53 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Marcus Boerger
2d234ec4ac
- Readd the file in this branch
2005-12-07 17:44:43 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
Michael Wallner
20c3b72bf0
- export everything we've got aliases for
2005-12-01 21:07:52 +00:00
Michael Wallner
039c69da18
- use php_pcre aliases
2005-12-01 20:53:35 +00:00
Michael Wallner
7901a6dbef
MFH: ext/filter will need those exports
...
# php_compat.h still prevents linking
2005-12-01 20:07:34 +00:00
foobar
a0303c772a
MFH: Renamed config.m4 to config0.m4
...
# PCRE configure tests must be run before e.g. ext/filter
2005-11-17 10:02:42 +00:00
foobar
158ebbd9b5
MFH
2005-11-16 22:14:32 +00:00
Dmitry Stogov
36a14076a8
Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO)
2005-10-28 08:30:41 +00:00
Dmitry Stogov
631da59b50
Fixed bug #34790 (preg_match_all(), named capturing groups, variable assignment/return => crash)
2005-10-11 06:47:48 +00:00
Ilia Alshanetsky
31dcd92f46
removed unused vars
2005-08-23 15:16:02 +00:00
foobar
9477097564
MFH: Nuked EOLs from error messages
2005-08-18 13:34:41 +00:00
Sebastian Bergmann
96dfe589fe
Sync with config.m4.
2005-08-09 06:25:24 +00:00
SVN Migration
4571221d8e
This commit was manufactured by cvs2svn to create branch 'PHP_5_1'.
2005-08-08 23:59:05 +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