Commit Graph

283 Commits

Author SHA1 Message Date
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