Andrei Zmievski
b111463f4c
Fixed bug #6740 .
...
I happen to think that this is php_addslashes() problem, not PCRE's.
When 0 is passed for the length of the string to php_addslashes() it
assumes that we want to process the whole string and happily runs
strlen() on it. That is bad. It should respect the length and return
an empty string if it's 0.
2000-09-14 15:44:36 +00:00
Zeev Suraski
6c3d7449e1
- Made eval() and several other runtime-evaluated code portions report the
...
nature and location of errors more accurately (Stas)
2000-09-12 20:48:33 +00:00
Andrei Zmievski
4df36948c8
@- Fixed a bug in preg_replace() that would truncate subject string if the
...
@ first argument was en empty array. (Andrei)
This fixes bug #6346 , that would truncate subject string if the
first argument was en empty array.
2000-08-25 13:51:07 +00:00
Andrei Zmievski
d7c43de3ce
@- Fixed a bug that did not respect limit parameter in preg_replace() when
...
@ using /e modifier. (Andrei)
2000-08-24 13:23:13 +00:00
Andrei Zmievski
4f96d15f33
Reverting the pemalloc -> malloc change until we figure out why it breaks.
2000-08-17 19:01:28 +00:00
Andrei Zmievski
ba0e3f2145
No need to have persistent allocation.
2000-08-17 16:09:00 +00:00
Andrei Zmievski
9de5b9e04a
# There you go, Wico.
...
Fix bug $5676.
@- Fixed preg_replace() to automatically escape quotes in matched
@ strings when using /e modifier. (Andrei)
2000-07-20 15:27:16 +00:00
Andrei Zmievski
1ca7f07d1a
Typo.
2000-06-30 19:40:42 +00:00
Andrei Zmievski
29e8e565c6
@- Added an optional parameter to preg_replace() that can be used to
...
@ specify how many replacements to make. (Andrei)
2000-06-28 20:07:26 +00:00
Andrei Zmievski
7ef638aa30
@- Upgraded PCRE to version 3.2 and fixed a bug when anchored pattern
...
@ matched an empty string. (Andrei)
2000-06-12 19:55:58 +00:00
Andrei Zmievski
f20194149f
One more place.
2000-06-10 19:44:34 +00:00
Andrei Zmievski
43793b94f7
Terminate the string with '\0'.
2000-06-10 19:43:20 +00:00
Andi Gutmans
3701bc4207
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
2000-06-05 19:47:54 +00:00
Andrei Zmievski
1db5c7d1e2
@- Cleaned up PCRE extension and made it binary-safe. (Andrei)
2000-06-01 16:34:00 +00:00
Andrei Zmievski
8a5bc5b674
Update proto.
2000-05-25 21:07:07 +00:00
Andrei Zmievski
0a142bb94e
@- Added second argument to preg_quote() which allows quoting of
...
@ one additional character, usually the regex delimiter. (Andrei)
2000-05-25 21:04:09 +00:00
Sascha Schumann
4686a3b50e
Use #ifdef COMPILE_DL_EXTNAME solely.
2000-05-23 09:33:51 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Andrei Zmievski
0060f95699
Fixes for possible failure of zend_eval_string().
2000-05-06 17:57:34 +00:00
Sascha Schumann
fe50664d4d
#if COMPILE_DL
...
becomes
#if defined(COMPILE_DL) || defined(COMPILE_DL_EXTENSION_NAME)
2000-05-02 00:44:35 +00:00
Sascha Schumann
0d383d9373
Replace the various get_module() functions with a uniform
...
ZEND_GET_MODULE(name) macro.
2000-05-02 00:30:36 +00:00
Sascha Schumann
a481fddfb3
Improved in-tree shared libraries build system
...
The following new/revived shared modules are available now:
... MySQL (*)
... PCRE (*)
... Session
... SWF
(*) capable of using bundled library or external library
All changes:
The m4 macro PHP_EXTENSION was revamped. Uses LIB_BUILD now.
This effectively means that all extensions have to use dynlib.
ext/mysql/config.m4 was revamped.
Uses LIB_BUILD for building bundled library.
ext/pcre/config.m4 was revamped.
Uses LIB_BUILD for building bundled library.
ext/ext_skel was changed to reflect that more modules should be
compileable as shared module.
ext/Makefile.in has been simplified enormously.
Dependencies are now stored in the build tree.
Empty dependencies are not generated by buildconf anymore. They
are now dynamically created during the build process.
Implicit rules for .S were removed.
The NO_RECURSION feature was removed.
"libs.mk" has been added to all cvsignore files in ext.
2000-05-01 02:42:55 +00:00
Andrei Zmievski
5c5ec88292
@Added substr_count() from Peter Kovacs. (Andrei)
...
# also some todo stuff
2000-04-26 00:29:59 +00:00
Colin Viebrock
a7c8bfb9fb
phpinfo() prettying
2000-04-06 21:07:44 +00:00
Colin Viebrock
fddd1201b4
phpinfo() prettying
2000-04-05 20:42:59 +00:00
Stig Bakken
d02fe90b00
Change extension names in all extensions' zend_module_entry to their
...
directory name.
2000-03-06 18:44:01 +00:00
Andrei Zmievski
2b9b11d3af
Fix bug #3599 .
2000-02-24 14:37:05 +00:00
Egon Schmid
11e2405489
More protos.
2000-02-23 16:38:38 +00:00
Zeev Suraski
86fa2aade2
the pipe is breaking all the time
2000-02-19 23:41:32 +00:00
Zeev Suraski
3a816341f9
Cleanup patches
2000-02-05 15:16:12 +00:00
Zeev Suraski
62114c1806
Destructors no longer return ints, the low level problem it was intended to solve is long gone now...
2000-01-17 17:33:37 +00:00
Andrei Zmievski
878906fbb8
Another idea I had today.
2000-01-15 21:35:50 +00:00
Sascha Schumann
43ae2bffbb
Happy Y2K patch! Happy new year (or the new millennium, depending on whether
...
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Zeev Suraski
235386b245
Change ALLOC_ZVAL() semantics
1999-12-26 21:21:33 +00:00
Andi Gutmans
3f6e00e48d
- Use ALLOC_ZVAL() in PHP. Finding the places to put FREE_ZVAL(z) is much
...
more tricky and I'm not sure how many places this is. zval allocations
were only made directly in 11 places.
1999-12-24 15:43:39 +00:00
Andrei Zmievski
742c58c240
(PHP preg_quote) Made binary-safe.
...
@ Made preg_quote() binary-safe. (Andrei)
1999-12-20 20:49:56 +00:00
Zeev Suraski
a1ad2872ee
- The tree compiles again
1999-12-18 22:40:35 +00:00
Andrei Zmievski
4f52bab52f
Need to check for __inet_aton on Solaris.
1999-12-07 16:26:42 +00:00
Andrei Zmievski
a9a5f24029
Add another item.
1999-12-06 16:41:55 +00:00
Sascha Schumann
4a60eed469
Fix some warnings
1999-12-05 16:25:32 +00:00
Sascha Schumann
5b983c944f
Clean up php3.*\.h files. The files itself are renamed, and references in all
...
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
1999-12-04 19:19:57 +00:00
Andrei Zmievski
3ae0f5fdc4
(PHP preg_replace) Fixed a bug that cause backreferences to lose
...
their value after the first occurrence.
1999-11-19 22:59:12 +00:00
Andrei Zmievski
71a8c018cb
Fixed a bug that would replace only the first occurrence and result in
...
a parse error for the rest when using /e modifier.
1999-11-19 22:28:06 +00:00
Andrei Zmievski
e921d0feab
Fix bug #2623 .
1999-10-28 16:41:17 +00:00
Andrei Zmievski
ce1f3a7d83
Make string copying a little more efficient.
1999-10-15 20:36:10 +00:00
Andrei Zmievski
22fb5f281a
Renamed a couple of functions to have proper php_ prefix.
1999-10-15 20:04:31 +00:00
Andrei Zmievski
d3a39771c1
(_php_replace_in_subject)
...
(PHP preg_replace):
Fixed a bug that happened when regex was an array and replacement was a
single non-string value. Also changed conversions to use
convert_to_string_ex().
(PHP preg_grep): use convert_to_string_ex() for proper conversion
1999-10-15 16:57:54 +00:00
Andrei Zmievski
a92fb5fe3d
rename.
1999-10-01 14:54:55 +00:00
Andrei Zmievski
7258842c29
preg_replace() now makes copies of array entries if arrays are passed in,
...
so that convert_to_string() preserves the originals. Is this the correct way to do it?
1999-09-30 21:59:46 +00:00
Andrey Hristov
bfa7b6b145
- Updated array functions to use high-performance API
...
- Updated preg_split() to allow returning only non-empty pieces
1999-09-24 22:44:41 +00:00