Felipe Pena
1db7472a73
- Coding standards
2010-11-06 18:35:38 +00:00
Felipe Pena
1c556f2030
- Coding standards
2010-11-06 18:35:38 +00:00
Felipe Pena
f4927c28bc
- Fixed bug #52732 (Docs say preg_match() returns FALSE on error, but it returns int(0))
...
patch by: slugonamission at gmail dot com
2010-11-06 18:32:10 +00:00
Felipe Pena
03cbbf4348
- Fixed bug #52732 (Docs say preg_match() returns FALSE on error, but it returns int(0))
...
patch by: slugonamission at gmail dot com
2010-11-06 18:32:10 +00:00
Adam Harvey
6bc20667c7
Fix bracket in prototype comment.
2010-11-05 18:12:30 +00:00
Adam Harvey
8365739663
Implemented FR #53238 (Make third parameter of preg_match_all optional).
2010-11-05 04:37:27 +00:00
Felipe Pena
090a9b3331
- Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8)
...
# In PCRE, by default, \d, \D, \s, \S, \w, and \W recognize only ASCII
# characters, even in UTF-8 mode. However, this can be changed by setting
# the PCRE_UCP option.
2010-10-03 16:01:38 +00:00
Felipe Pena
87a2373422
- Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8)
...
# In PCRE, by default, \d, \D, \s, \S, \w, and \W recognize only ASCII
# characters, even in UTF-8 mode. However, this can be changed by setting
# the PCRE_UCP option.
2010-10-03 16:01:38 +00:00
Ilia Alshanetsky
bbeafa1dcf
Win32 build fixes
2010-08-14 14:47:49 +00:00
Ilia Alshanetsky
c5602787fc
MFH: Upgraded bundled PCRE to version 8.10.
2010-08-14 14:37:13 +00:00
Kalle Sommer Nielsen
a448b6a72b
MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED ( Fixes #52570 )
...
# Some of the updated tests were to make them sync with 5.3 although they don't run on trunk anymore
2010-08-11 21:41:30 +00:00
Kalle Sommer Nielsen
8deefa8780
Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED ( Fixes #52570 )
...
# Trunk patch will follow shortly
2010-08-11 21:12:18 +00:00
Pierre Joye
8d0fb1c964
- fix build
2010-07-29 12:06:15 +00:00
Pierre Joye
110fab9803
- fix build
2010-07-29 11:58:41 +00:00
Sriram Natarajan
a0bf0739a9
- Fixed bug #52436 (Compile error in pcre if systems do not have stdint.h)
...
# PCRE's config.h can very well reuse the definitions made available from
# PHP's configure script output available within php_config.h
2010-07-27 21:42:22 +00:00
Sriram Natarajan
e4be370479
- Fixed bug #52436 (Compile error in pcre if systems do not have stdint.h)
...
# PCRE's config.h can very well reuse the definitions made available from
# PHP's configure script output available within php_config.h
2010-07-27 21:42:22 +00:00
Kalle Sommer Nielsen
b4c573c7ec
Fixed Windows build
2010-07-08 15:09:57 +00:00
Ilia Alshanetsky
ef22824315
Upgraded bundled PCRE to version 8.10
2010-07-02 17:17:16 +00:00
Pierre Joye
94ef6d481f
- fix build
2010-04-01 10:34:05 +00:00
Pierre Joye
60176163f1
- fix build
2010-04-01 10:34:05 +00:00
Ilia Alshanetsky
e99039d692
Upgraded bundled PCRE to version 8.02.
2010-03-29 11:58:06 +00:00
Ilia Alshanetsky
6e92347ddf
Upgraded bundled PCRE to version 8.02.
2010-03-29 11:58:06 +00:00
Pierre Joye
add029adef
- fix win build, use bundled stdint
2010-01-21 23:23:17 +00:00
Ilia Alshanetsky
50016d9dec
Upgraded bundled PCRE to version 8.01
2010-01-21 17:49:38 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Felipe Pena
a94558c855
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
2009-12-08 01:57:37 +00:00
Scott MacVicar
f03b175f7c
Update PCRE to 8.00
2009-11-03 12:15:03 +00:00
Dmitry Stogov
7bfe056174
Fixed tests
2009-09-21 09:52:19 +00:00
Felipe Pena
b4ee727353
- Fixed bug #49483 (preg_replace 'subject' parameter listed as optional)
2009-09-06 17:41:34 +00:00
Scott MacVicar
6ffe4b2eff
We should check /usr/local/include last
2009-08-11 21:40:15 +00:00
Scott MacVicar
94976f4694
Search /usr/include too for those wanting to use a system PCRE.
2009-08-11 12:03:29 +00:00
Zoe Slattery
9ff94c82df
Remove empty sections. Fix bad use of --SKIP--
2009-07-21 14:02:24 +00:00
andy wharmby
0fbf8cebd7
Fix test
2009-06-23 23:00:55 +00:00
Matt Wilmas
d55300298e
MFH: Added zend_eval_stringl and made create_function(), etc. binary-safe
2009-06-05 18:50:32 +00:00
Jani Taskinen
996eab8983
- Fixed ini deprecation message issues in tests.
...
# CGI headers are stripped and the error ends up there with CGI..
2009-05-06 20:32:00 +00:00
Kalle Sommer Nielsen
5a6d3cc42b
Added E_DEPRECATED startup notice (5.3 only)
2009-05-04 21:18:22 +00:00
Arnaud Le Blanc
1bef730840
MFH
2009-04-25 21:13:07 +00:00
Arnaud Le Blanc
54958dbc7c
MFH
2009-04-24 17:14:32 +00:00
Nuno Lopes
90a2d19794
upgrade PCRE to version 7.9
2009-04-11 18:57:27 +00:00
Nuno Lopes
ae57857eba
fix bug #47662 : support more than 127 named subpatterns
2009-04-10 15:47:15 +00:00
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
Nuno Lopes
41dcd7d0b5
upgrade pcre to version 7.4
2007-10-07 10:35:03 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Antony Dovgal
f67c0222fe
MFH
2007-09-20 08:10:44 +00:00
Nuno Lopes
336111e4e9
remove the -DHAVE_CONFIG_H switch again to fix things on windows
...
this means that the upgrade script strips the #ifdef automatically
2007-09-11 16:17:34 +00:00
Nuno Lopes
c6f777da1f
adapt for PCRE 7.3
...
remove ability to include config.h from php_pcre.c, as it seems pretty useless and produces a few warnings
2007-09-01 17:51:35 +00:00
Nuno Lopes
3edd2a69f2
upgrade to PCRE 7.3
2007-09-01 17:48:43 +00:00
Nuno Lopes
a3e6be974f
new test
2007-09-01 17:47:13 +00:00
Antony Dovgal
3afa134717
[DOC] MFH: add PCRE_VERSION constant to ext/pcre
2007-07-24 22:35:18 +00:00
foobar
7ed3c4536d
MFH: Fix some configure --help texts
2007-07-03 17:25:43 +00:00
Nuno Lopes
a2e06e6dc8
new test
2007-06-19 17:32:36 +00:00
Nuno Lopes
034e8692b7
final PCRE 7.2 release :-)
2007-06-19 17:11:30 +00:00
Nuno Lopes
4e51d2ec73
upgrade PCRE to version 7.2 RC3
...
# I'll update to the final version early next week when its released
2007-06-15 19:09:26 +00:00
Nuno Lopes
17db5db759
add tests for pcre 7.0 regression
...
update to pcre 7.2 will follow soon
2007-06-15 11:57:08 +00:00
Scott MacVicar
2caf386764
Display PCRE ini entries as part of module info
2007-06-12 14:08:16 +00:00
Antony Dovgal
1f65545121
fix test names
2007-05-07 18:03:01 +00:00
Nuno Lopes
877b7c7ea7
fix test title
2007-05-07 15:23:53 +00:00
Antony Dovgal
6a73be6329
fix folding
2007-04-23 10:05:33 +00:00
Marcus Boerger
4e085083cd
- MFH Need to install headers
2007-03-25 12:53:47 +00:00
Antony Dovgal
f6536ed2b2
MFH: remove unnecessary warning in case of exception
2007-03-14 23:47:44 +00:00
Ilia Alshanetsky
efad70c2cc
snprintf() -> slprintf()
2007-02-27 03:28:17 +00:00
Rob Richards
796d5ee3ab
MFH: fix win build
2007-02-26 12:38:34 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Antony Dovgal
b877bb70de
MFH: fix pcre tests
2007-02-12 14:22:19 +00:00
Nuno Lopes
da9f515648
new test to keep track of the reported pcre regression
2007-02-09 20:00:17 +00:00
Nuno Lopes
b3e66c616d
upgrade pcre to version 7.0
2007-02-09 19:48:47 +00:00
Hannes Magnusson
5d75262062
Fix build on system where HAVE_SETLOCALE is not defined
2007-01-10 14:37:31 +00:00
Hannes Magnusson
9ad0ffbd33
MFH: revert pcrelib version string
2007-01-03 20:08:37 +00:00
Antony Dovgal
614e0b29ac
MFH
2007-01-03 18:32:27 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Nuno Lopes
6a8a2e8b0e
new test
2006-12-19 21:46:48 +00:00
Antony Dovgal
c34d863d3e
MFH
2006-12-19 13:15:39 +00:00
Ilia Alshanetsky
e034b4a8b0
Removed dummy vars.
...
# Patch by Matt Wilmas
2006-12-12 15:35:16 +00:00
Nuno Lopes
802e12674e
add tests for old bug reports
2006-12-08 12:13:23 +00:00
Antony Dovgal
44a3cad930
MFH: partly fix #39724
...
ext/spl has a soft dependcy from ext/pcre (not ext/pcre-regex)
2006-12-04 18:01:53 +00:00
Hannes Magnusson
f61b9635ba
Fix test on fbsd
2006-12-03 08:04:57 +00:00
Nuno Lopes
0df2a37d1b
new tests. increase coverage for more than 90%
2006-12-02 21:39:28 +00:00
Nuno Lopes
cb4b75f155
remove old file (which was already removed from 4.4 and HEAD trees)
2006-11-16 18:58:02 +00:00
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
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