]> granicus.if.org Git - php/log
php
25 years agoAdded preg_split. Same syntax as regular split().
Andrey Hristov [Wed, 26 May 1999 18:59:04 +0000 (18:59 +0000)]
Added preg_split.  Same syntax as regular split().

25 years agoFixing a couple of long standing bugs.
Andrey Hristov [Wed, 26 May 1999 18:45:53 +0000 (18:45 +0000)]
Fixing a couple of long standing bugs.

25 years agoA few changes here.
Andrey Hristov [Wed, 26 May 1999 15:22:02 +0000 (15:22 +0000)]
A few changes here.

First of all, as per extensive discussion on the list, the functions are now
prefixed with "preg" instead of "pcre".

Secondly, global matching is now possible using preg_match_all.  Please, give
suggestions on a better name if this one doesn't sit well with you.  Possible
names are preg_global_match and preg_gmatch.

preg_match_all takes 4 arguments: a regex pattern, a subject string,
the array for capturing subpatterns, and a parameter that tells how the results
in the subpatterns array are arranged.

Basically, preg_match_all will go through the subject string and try to capture
all the matches that it finds, not just the first one like preg_match.

4th parameter can be PREG_PATTERN_ORDER (default) or PREG_SET_ORDER.

Example:
preg_match_all("|</?([^>]+)>|", "<div align=left>a test</div>", $out, PREG_PATTERN_ORDER);

This returns results so that $out[0] is an array of full pattern matches, $out[1] is an array
of first captured subpattern matches, and so on.

$out[0] -> ("<div align=left>", "</div>")
$out[1] -> ("div align=left", "div")

Example:
preg_match_all("|</?([^>]+)>|", "<div align=left>a test</div>", $out, PREG_SET_ORDER);

This returns results so that $out[0] is an array of first full pattern match and subpatterns,
$out[1] is an array of second full pattern match and subpatterns.

$out[0] -> ("<div align=left>", "div align=left")
$out[1] -> ("</div>", "div")

If anyone has a better name for these PREG_ constants and also which one should be the default,
I'd like to hear it.

25 years agoAvoid crashing if an error occurs before we open the first file.
Zeev Suraski [Tue, 25 May 1999 22:55:13 +0000 (22:55 +0000)]
Avoid crashing if an error occurs before we open the first file.

25 years agoAdd container for file-upload. It's not quite implemented yet.
Zeev Suraski [Tue, 25 May 1999 22:28:24 +0000 (22:28 +0000)]
Add container for file-upload.  It's not quite implemented yet.

25 years agoJust a little sanity check.
Andrey Hristov [Tue, 25 May 1999 21:47:58 +0000 (21:47 +0000)]
Just a little sanity check.

25 years agoAllow unregistering content types as well.
Zeev Suraski [Tue, 25 May 1999 21:19:46 +0000 (21:19 +0000)]
Allow unregistering content types as well.

25 years ago* Add generic POST content-type support. Only application/x-www-form-urlencoded
Zeev Suraski [Tue, 25 May 1999 21:14:54 +0000 (21:14 +0000)]
* Add generic POST content-type support.  Only application/x-www-form-urlencoded
  supported at this time, but the framework allows for any other types, including
  runtime addition of types.

25 years agoinclude regex in Win32 build
Zeev Suraski [Mon, 24 May 1999 18:02:42 +0000 (18:02 +0000)]
include regex in Win32 build

25 years agoThe last fix was wrong
Zeev Suraski [Mon, 24 May 1999 16:48:01 +0000 (16:48 +0000)]
The last fix was wrong

25 years agoAnother operators fix
Zeev Suraski [Mon, 24 May 1999 16:43:47 +0000 (16:43 +0000)]
Another operators fix

25 years agoboolean comparison didn't work with smaller-than and greater-than, something that
Zeev Suraski [Sun, 23 May 1999 22:07:04 +0000 (22:07 +0000)]
boolean comparison didn't work with smaller-than and greater-than, something that
fucked up berber's site a bit.  fixed.

25 years agoThou shalt use the API, and thou shalt be safe
Zeev Suraski [Sun, 23 May 1999 20:32:19 +0000 (20:32 +0000)]
Thou shalt use the API, and thou shalt be safe

25 years agoSome comments.
Andrey Hristov [Sat, 22 May 1999 19:46:27 +0000 (19:46 +0000)]
Some comments.

25 years ago- add -lregex
Sascha Schumann [Sat, 22 May 1999 19:41:28 +0000 (19:41 +0000)]
- add -lregex
- change module name to php4

25 years agoAdded ability to pass array parameters to pcre_replace.
Andrey Hristov [Sat, 22 May 1999 19:14:57 +0000 (19:14 +0000)]
Added ability to pass array parameters to pcre_replace.

25 years agoSigh, another leak bites the dust. FREE_OP missing in case of a SEND_VAR.
Zeev Suraski [Sat, 22 May 1999 18:02:30 +0000 (18:02 +0000)]
Sigh, another leak bites the dust.  FREE_OP missing in case of a SEND_VAR.

25 years agoI'm on a roll. Fix a nasty yet stupid AiCount bug
Zeev Suraski [Sat, 22 May 1999 17:30:09 +0000 (17:30 +0000)]
I'm on a roll.  Fix a nasty yet stupid AiCount bug

25 years agoWarn about AiCount not zeroing out
Zeev Suraski [Sat, 22 May 1999 16:48:23 +0000 (16:48 +0000)]
Warn about AiCount not zeroing out

25 years agoadd a $(srcdir)
Sascha Schumann [Sat, 22 May 1999 16:13:10 +0000 (16:13 +0000)]
add a $(srcdir)

25 years agofix compile issues in LDAP/XML exts
Sascha Schumann [Sat, 22 May 1999 16:12:09 +0000 (16:12 +0000)]
fix compile issues in LDAP/XML exts

25 years ago* Add struct name to all typedef's so that they can be debugged with MSVC
Zeev Suraski [Sat, 22 May 1999 16:10:51 +0000 (16:10 +0000)]
* Add struct name to all typedef's so that they can be debugged with MSVC
* Fix an AiCount bug - list(...) = $var was using $var multiple times, and thus
causing AiCount to be decreased multiple times even though it was increased only
once for $var.  Mark all FETCH_DIM's so that they won't decrease AiCount, and only
decrease AiCount on the last FETCH_DIM.
* Fix a stupid bug - forgot to pass CLS_C to some compiler function.  For some reason
MSVC doesn't report these :I

25 years agofix APXS compile
Sascha Schumann [Sat, 22 May 1999 15:48:29 +0000 (15:48 +0000)]
fix APXS compile

25 years agoMore fixes. Should hopefully work well now.
Zeev Suraski [Sat, 22 May 1999 12:19:57 +0000 (12:19 +0000)]
More fixes.  Should hopefully work well now.

25 years agophp_ini fixes
Zeev Suraski [Sat, 22 May 1999 11:34:21 +0000 (11:34 +0000)]
php_ini fixes

25 years agoGive more information and save log lines in memory leak reports
Zeev Suraski [Sat, 22 May 1999 11:20:56 +0000 (11:20 +0000)]
Give more information and save log lines in memory leak reports

25 years ago* Minor fixes
Zeev Suraski [Sat, 22 May 1999 10:56:36 +0000 (10:56 +0000)]
* Minor fixes
* Better handling for multiple repeated memory leaks (libzend updated)

25 years agoTime to rename the child
Zeev Suraski [Sat, 22 May 1999 09:24:21 +0000 (09:24 +0000)]
Time to rename the child

25 years agoAvoid leaking fd's in case of failures
Zeev Suraski [Sat, 22 May 1999 02:13:01 +0000 (02:13 +0000)]
Avoid leaking fd's in case of failures

25 years agoSmall fix
Zeev Suraski [Sat, 22 May 1999 01:15:25 +0000 (01:15 +0000)]
Small fix

25 years agomore fixes
Zeev Suraski [Sat, 22 May 1999 01:07:50 +0000 (01:07 +0000)]
more fixes

25 years agoFix a memory leak
Zeev Suraski [Fri, 21 May 1999 23:51:19 +0000 (23:51 +0000)]
Fix a memory leak

25 years agoThat wasn't supposed to slip in
Zeev Suraski [Fri, 21 May 1999 23:48:24 +0000 (23:48 +0000)]
That wasn't supposed to slip in

25 years agoThis should be centralized...
Zeev Suraski [Fri, 21 May 1999 23:25:46 +0000 (23:25 +0000)]
This should be centralized...

25 years ago* Properly handle failed file opens in C++
Zeev Suraski [Fri, 21 May 1999 20:20:32 +0000 (20:20 +0000)]
* Properly handle failed file opens in C++
* Properly handle failed require()'s within libzend

25 years agoadd support for mhash 0.5.0
Sascha Schumann [Fri, 21 May 1999 20:09:23 +0000 (20:09 +0000)]
add support for mhash 0.5.0

see http://sasweb.de/mhash/

25 years ago-Added regex cache
Andrey Hristov [Fri, 21 May 1999 19:27:44 +0000 (19:27 +0000)]
-Added regex cache
-Made module thread-safe

25 years ago* Fix error handling startup on the thread-safe CGI version
Zeev Suraski [Fri, 21 May 1999 19:22:17 +0000 (19:22 +0000)]
* Fix error handling startup on the thread-safe CGI version
* A failed require() is a compile-time error, consider it as one

25 years ago* Fix the comments issue. yymore() worked like a charm.
Zeev Suraski [Fri, 21 May 1999 17:31:49 +0000 (17:31 +0000)]
* Fix the comments issue.  yymore() worked like a charm.
* Change all flex states to be prefixed with ST_

25 years agoGet rid of debug printf's.
Andrey Hristov [Fri, 21 May 1999 13:29:05 +0000 (13:29 +0000)]
Get rid of debug printf's.

25 years agoInitial check-in of PCRE (Perl Compatible Regular Expressions) extension.
Andrey Hristov [Fri, 21 May 1999 13:17:23 +0000 (13:17 +0000)]
Initial check-in of PCRE (Perl Compatible Regular Expressions) extension.

PCRE library can be found at ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/

config.m4 will be updated to be more robust later on.

perl_match() takes a regular expression, the source string, and the array
for subpattern matches.

perl_replace() takes a regular expression, the search string, and the replacement
string.

Regular expression is specified using delimiters and options.  Example:

perl_match("/<[a-z]*>/i", $text, $tags);

More stuff is coming soon.

25 years ago- run ext sources through conv_proto
Sascha Schumann [Fri, 21 May 1999 10:06:25 +0000 (10:06 +0000)]
- run ext sources through conv_proto
- add necessary phpext_*_ptr

25 years agomerge in some PHP3 stuff
Sascha Schumann [Fri, 21 May 1999 08:37:48 +0000 (08:37 +0000)]
merge in some PHP3 stuff

25 years agoincorporate YP/NIS support
Sascha Schumann [Fri, 21 May 1999 08:29:51 +0000 (08:29 +0000)]
incorporate YP/NIS support

25 years ago- fix compile issues for various packages (dbase, sysv*, zlib)
Sascha Schumann [Fri, 21 May 1999 08:20:13 +0000 (08:20 +0000)]
- fix compile issues for various packages (dbase, sysv*, zlib)
- some cleanup in mhash/mcrypt

25 years ago- add phpext_pgsql_ptr
Sascha Schumann [Fri, 21 May 1999 08:04:38 +0000 (08:04 +0000)]
- add phpext_pgsql_ptr
- semaphore update for glibc-2.1 systems

25 years agoAdd default path for binary mysql distributions
Sascha Schumann [Fri, 21 May 1999 07:52:12 +0000 (07:52 +0000)]
Add default path for binary mysql distributions

25 years agoremove debug messages
Sascha Schumann [Fri, 21 May 1999 07:04:48 +0000 (07:04 +0000)]
remove debug messages

25 years agoOptimize allocations into uninitialized_zval assignments
Zeev Suraski [Thu, 20 May 1999 20:00:59 +0000 (20:00 +0000)]
Optimize allocations into uninitialized_zval assignments

25 years agoUse OutputDebugString() or fprintf(stderr,) for memory leaks
Zeev Suraski [Thu, 20 May 1999 19:06:28 +0000 (19:06 +0000)]
Use OutputDebugString() or fprintf(stderr,) for memory leaks

25 years agoApply the fix for feof()
Sascha Schumann [Thu, 20 May 1999 13:56:19 +0000 (13:56 +0000)]
Apply the fix for feof()

25 years ago- Updates we did today
Andi Gutmans [Thu, 20 May 1999 13:04:59 +0000 (13:04 +0000)]
- Updates we did today

25 years ago- Small fixes
Andi Gutmans [Thu, 20 May 1999 12:06:45 +0000 (12:06 +0000)]
- Small fixes

25 years ago- Fix a small problem with class decelerations.
Andi Gutmans [Thu, 20 May 1999 09:08:29 +0000 (09:08 +0000)]
- Fix a small problem with class decelerations.

25 years ago-Open curly braces fix?
Andi Gutmans [Thu, 20 May 1999 09:02:03 +0000 (09:02 +0000)]
-Open curly braces fix?

25 years agoadd mhash support
Sascha Schumann [Sun, 16 May 1999 12:01:25 +0000 (12:01 +0000)]
add mhash support

25 years agokill another 64-bit issue.
Sascha Schumann [Sun, 16 May 1999 11:55:34 +0000 (11:55 +0000)]
kill another 64-bit issue.
this affected at least md5 which produced wrong values on 64-bit platforms

25 years agochar * => unsigned char *
Sascha Schumann [Sun, 16 May 1999 11:32:51 +0000 (11:32 +0000)]
char * => unsigned char *

25 years agoconv_proto *.[ch]
Sascha Schumann [Sun, 16 May 1999 11:19:26 +0000 (11:19 +0000)]
conv_proto *.[ch]

25 years agothis script automatically converts the ugly void php3_... prototypes
Sascha Schumann [Sun, 16 May 1999 11:14:52 +0000 (11:14 +0000)]
this script automatically converts the ugly void php3_... prototypes
to PHP_FUNCTION(...) prototypes. Also kills some unnecessary extern
declarations in front of function prototypes.

25 years agoadd fast bin2hex string function
Sascha Schumann [Sun, 16 May 1999 11:12:23 +0000 (11:12 +0000)]
add fast bin2hex string function

25 years agokill some compiler warnings
Sascha Schumann [Sun, 16 May 1999 11:10:41 +0000 (11:10 +0000)]
kill some compiler warnings

25 years ago* Fix all hash checks that checked Bucket.arKey for NULL, when it was changed
Zeev Suraski [Sat, 15 May 1999 15:47:24 +0000 (15:47 +0000)]
* Fix all hash checks that checked Bucket.arKey for NULL, when it was changed
  to char[1], these checks should have been changed to Bucket.nKeyLength==0
* Support runtime declaration of functions.  I ended up changing the grammar
  to catch top level functions vs. nested functions.  The reason is simple -
  if we don't have functions properly declared at compile-time, function calls
  cannot be resolved at compile time, and have to be resolved at runtime, which
  ends up being much much slower (without the optimizer, that is).
  It's no biggy though, the grammar change isn't that bad.

25 years ago*** empty log message ***
Zeev Suraski [Sat, 15 May 1999 14:56:23 +0000 (14:56 +0000)]
*** empty log message ***

25 years agoIf a require() dies, we must bail out (since it corrupts an existing op_array
Zeev Suraski [Fri, 14 May 1999 20:16:22 +0000 (20:16 +0000)]
If a require() dies, we must bail out (since it corrupts an existing op_array

25 years agoFix a bug
Zeev Suraski [Fri, 14 May 1999 19:04:37 +0000 (19:04 +0000)]
Fix a bug

25 years agodon't install Zend on the system
Stig S. Bakken [Fri, 14 May 1999 18:42:06 +0000 (18:42 +0000)]
don't install Zend on the system

25 years ago* Include all of the standard modules in internal_functions.c.in. Stig - is that
Zeev Suraski [Fri, 14 May 1999 18:25:16 +0000 (18:25 +0000)]
* Include all of the standard modules in internal_functions.c.in.  Stig - is that
  the way you intended it to be?  How does the basic_functions module get in there?
* Fix to get MySQL objects working, even though I'll probably make a dedicated
  MySQL object in the future.

25 years agoAdd \012 and \xff missing support to constant quoted string
Zeev Suraski [Fri, 14 May 1999 11:29:34 +0000 (11:29 +0000)]
Add \012 and \xff missing support to constant quoted string

25 years agoRelease fix
Zeev Suraski [Thu, 13 May 1999 16:48:49 +0000 (16:48 +0000)]
Release fix

25 years ago* HTTP-auth bugfix
Zeev Suraski [Thu, 13 May 1999 15:54:49 +0000 (15:54 +0000)]
* HTTP-auth bugfix
* Patch the regex thread safe code to compile in thread safe mode

25 years ago*** empty log message ***
Zeev Suraski [Wed, 12 May 1999 23:05:17 +0000 (23:05 +0000)]
*** empty log message ***

25 years agoEnable Apache HTTP Auth
Zeev Suraski [Wed, 12 May 1999 22:49:23 +0000 (22:49 +0000)]
Enable Apache HTTP Auth

25 years agoSupport HTTP Auth under ISAPI. Now, these short pieces of code took *A LOT* of
Zeev Suraski [Wed, 12 May 1999 21:35:16 +0000 (21:35 +0000)]
Support HTTP Auth under ISAPI.  Now, these short pieces of code took *A LOT* of
research :(

25 years agoinstall libzend.a and header files on "make install"
Stig S. Bakken [Wed, 12 May 1999 20:12:15 +0000 (20:12 +0000)]
install libzend.a and header files on "make install"

25 years agoadd --enable-thread-safety option
Stig S. Bakken [Wed, 12 May 1999 20:11:42 +0000 (20:11 +0000)]
add --enable-thread-safety option

25 years agoAdded prepend to llist
Zeev Suraski [Wed, 12 May 1999 18:06:14 +0000 (18:06 +0000)]
Added prepend to llist

25 years agoIt's been there long enough.
Andrey Hristov [Wed, 12 May 1999 17:29:51 +0000 (17:29 +0000)]
It's been there long enough.

25 years agocompiles
Thies C. Arntzen [Wed, 12 May 1999 16:12:22 +0000 (16:12 +0000)]
compiles

25 years agoadded _php3_hash_next_index_pointer_insert
Thies C. Arntzen [Wed, 12 May 1999 16:11:35 +0000 (16:11 +0000)]
added _php3_hash_next_index_pointer_insert

25 years ago- regex cache (needs some work)
Sascha Schumann [Wed, 12 May 1999 15:40:15 +0000 (15:40 +0000)]
- regex cache (needs some work)
- str_replace changes from php3

25 years agoup-to-date with 3.0.8
Thies C. Arntzen [Wed, 12 May 1999 14:28:01 +0000 (14:28 +0000)]
up-to-date with 3.0.8

25 years agomove oci8 from oracle to it's own ext-directory - configure stuff needs more work...
Thies C. Arntzen [Wed, 12 May 1999 14:21:38 +0000 (14:21 +0000)]
move oci8 from oracle to it's own ext-directory - configure stuff needs more work - but it configures and compiles

25 years agobuilds and configures again
Thies C. Arntzen [Wed, 12 May 1999 13:44:09 +0000 (13:44 +0000)]
builds and configures again

25 years agosubstr() fix
Rasmus Lerdorf [Wed, 12 May 1999 12:53:45 +0000 (12:53 +0000)]
substr() fix

25 years agosubstr() fix for PHP4 as well
Rasmus Lerdorf [Wed, 12 May 1999 12:43:03 +0000 (12:43 +0000)]
substr() fix for PHP4 as well

25 years agoFixes:
Zeev Suraski [Tue, 11 May 1999 21:39:48 +0000 (21:39 +0000)]
Fixes:
* Avoid closing stdin (I could have sworn I've committed that already)
* unclean_shutdown patches

25 years agoEasier Win32 debug code
Zeev Suraski [Tue, 11 May 1999 21:38:39 +0000 (21:38 +0000)]
Easier Win32 debug code

25 years agoFix
Zeev Suraski [Tue, 11 May 1999 21:27:44 +0000 (21:27 +0000)]
Fix

25 years ago* Finally commit that -q patch
Zeev Suraski [Tue, 11 May 1999 20:38:16 +0000 (20:38 +0000)]
* Finally commit that -q patch
* Refine SAPI built in header support
* Use DllMain() in ISAPI to clean after threads and initialize tsrm/sapi as soon as possible.

25 years agoAdded compact() function.
Andrey Hristov [Tue, 11 May 1999 19:31:37 +0000 (19:31 +0000)]
Added compact() function.

25 years agoHandle the Location: header centrally for all SAPI modules.
Zeev Suraski [Tue, 11 May 1999 18:36:35 +0000 (18:36 +0000)]
Handle the Location: header centrally for all SAPI modules.

25 years ago* Fix a bug that occured in case of parse errors. We need to restore the lexical...
Zeev Suraski [Tue, 11 May 1999 17:50:37 +0000 (17:50 +0000)]
* Fix a bug that occured in case of parse errors.  We need to restore the lexical state
even if the compilation failed.

25 years ago* Move unclean_shutdown from PHP to Zend.
Zeev Suraski [Tue, 11 May 1999 16:52:58 +0000 (16:52 +0000)]
* Move unclean_shutdown from PHP to Zend.
* The Master/Local headers in the phpinfo() table were reversed.
* Fix a gpc bug

25 years agoSupport POST in Apache
Zeev Suraski [Tue, 11 May 1999 12:52:17 +0000 (12:52 +0000)]
Support POST in Apache

25 years agobeatify Apache's info func
Zeev Suraski [Tue, 11 May 1999 00:43:46 +0000 (00:43 +0000)]
beatify Apache's info func

25 years agoMemory leak fix
Zeev Suraski [Tue, 11 May 1999 00:09:22 +0000 (00:09 +0000)]
Memory leak fix

25 years ago* Get Apache to work. POST doesn't work yet.
Zeev Suraski [Tue, 11 May 1999 00:01:47 +0000 (00:01 +0000)]
* Get Apache to work.  POST doesn't work yet.
* There are now -I directives for the absolute path of php4, php4/libzend and the builddir for
  the Apache module, so we can #include any php/Zend header.
* Rename config.h to php_config.h

25 years agoMinor updates.
Andrey Hristov [Mon, 10 May 1999 21:14:43 +0000 (21:14 +0000)]
Minor updates.

25 years agoAdded in_array() function.
Andrey Hristov [Mon, 10 May 1999 21:10:48 +0000 (21:10 +0000)]
Added in_array() function.