]> granicus.if.org Git - php/log
php
25 years agobetter scaling for large servers using many session ids
Sascha Schumann [Mon, 7 Jun 1999 19:51:54 +0000 (19:51 +0000)]
better scaling for large servers using many session ids

25 years agoDon't set is_ref in _phpi_splice()
Andrey Hristov [Mon, 7 Jun 1999 18:52:20 +0000 (18:52 +0000)]
Don't set is_ref in _phpi_splice()
More checking in array_merge()
Added keys() and values() array functions.

25 years ago- some cleanups
Sascha Schumann [Mon, 7 Jun 1999 16:43:24 +0000 (16:43 +0000)]
- some cleanups
- add gc logic
- add session_destroy()

25 years agoFix an ereg_replace() crash bug
Zeev Suraski [Mon, 7 Jun 1999 15:01:25 +0000 (15:01 +0000)]
Fix an ereg_replace() crash bug

25 years ago- Fix PSLS issues
Zeev Suraski [Sun, 6 Jun 1999 19:53:59 +0000 (19:53 +0000)]
- Fix PSLS issues
- Add a standard info function for the session module (use them!)
- Replace PATH_MAX with MAXPATHLEN (that's our platform indepedent constant)

25 years agoone C too much
Sascha Schumann [Sun, 6 Jun 1999 19:26:31 +0000 (19:26 +0000)]
one C too much

25 years agoavoid unnecessary PSLS_FETCH() in internal functions
Sascha Schumann [Sun, 6 Jun 1999 19:25:39 +0000 (19:25 +0000)]
avoid unnecessary PSLS_FETCH() in internal functions

25 years ago-Init tsrm on minit
Andi Gutmans [Sun, 6 Jun 1999 18:56:11 +0000 (18:56 +0000)]
-Init tsrm on minit

25 years ago- Use PS() everywhere.
Andi Gutmans [Sun, 6 Jun 1999 18:39:48 +0000 (18:39 +0000)]
- Use PS() everywhere.

25 years ago- Make sessions compile on win32 but it still doesn't link.
Andi Gutmans [Sun, 6 Jun 1999 18:36:42 +0000 (18:36 +0000)]
- Make sessions compile on win32 but it still doesn't link.

25 years ago- Add some *_FETCH()'s. Still some work to be done so that it'll compile on win32.
Andi Gutmans [Sun, 6 Jun 1999 18:22:17 +0000 (18:22 +0000)]
- Add some *_FETCH()'s. Still some work to be done so that it'll compile on win32.

25 years agoWork around a compiler bug - mark variables that are sent to functions that aren...
Andi Gutmans [Sun, 6 Jun 1999 17:35:42 +0000 (17:35 +0000)]
Work around a compiler bug - mark variables that are sent to functions that aren't yet
defined as FETCH_W (because they might end up being sent by reference)

25 years ago- s/encoded/encode/
Sascha Schumann [Sun, 6 Jun 1999 15:18:51 +0000 (15:18 +0000)]
- s/encoded/encode/
- new TODO entry

25 years ago- Remove the is_ref =1 from the push() function.
Andi Gutmans [Sun, 6 Jun 1999 15:00:49 +0000 (15:00 +0000)]
- Remove the is_ref =1 from the push() function.

25 years agoadd some protos
Sascha Schumann [Sun, 6 Jun 1999 14:19:55 +0000 (14:19 +0000)]
add some protos

25 years agoadd some thoughts
Sascha Schumann [Sun, 6 Jun 1999 14:02:13 +0000 (14:02 +0000)]
add some thoughts

25 years ago- auto startup when calling register
Sascha Schumann [Sat, 5 Jun 1999 22:24:59 +0000 (22:24 +0000)]
- auto startup when calling register
- auto startup using a configuration option

25 years agomoving start code into its own function
Sascha Schumann [Sat, 5 Jun 1999 22:15:49 +0000 (22:15 +0000)]
moving start code into its own function

25 years agoAdded array_merge() function.
Andrey Hristov [Sat, 5 Jun 1999 21:19:25 +0000 (21:19 +0000)]
Added array_merge() function.

25 years agoSAPI does not want line endings
Sascha Schumann [Sat, 5 Jun 1999 20:51:29 +0000 (20:51 +0000)]
SAPI does not want line endings

25 years agoAdded push(), pop(), shift(), unshift(), splice(), and slice() array functions.
Andrey Hristov [Sat, 5 Jun 1999 20:43:36 +0000 (20:43 +0000)]
Added push(), pop(), shift(), unshift(), splice(), and slice() array functions.
The first 5 work like their Perl counterparts. slice() returns a chunk of the array
specified by offset and length arguments.

Backport to PHP3 and docs will be coming soon.

25 years ago* Centralized shutdown
Zeev Suraski [Sat, 5 Jun 1999 20:00:00 +0000 (20:00 +0000)]
* Centralized shutdown
* Change shutdown order again

25 years agofirst import of session module
Sascha Schumann [Sat, 5 Jun 1999 19:52:58 +0000 (19:52 +0000)]
first import of session module

25 years agoCall the request_shutdown on modules before destroying symbol tables, so that
Zeev Suraski [Sat, 5 Jun 1999 19:10:40 +0000 (19:10 +0000)]
Call the request_shutdown on modules before destroying symbol tables, so that
the session module can be implemented

25 years agoMove shutdown order into Zend
Zeev Suraski [Sat, 5 Jun 1999 19:00:56 +0000 (19:00 +0000)]
Move shutdown order into Zend

25 years ago- Fixed Karl's bug report. It's not really a thorough fix, we really need to rethink...
Zeev Suraski [Sat, 5 Jun 1999 18:47:36 +0000 (18:47 +0000)]
- Fixed Karl's bug report.  It's not really a thorough fix, we really need to rethink the INIT_FCALL/DO_FCALL issue.
- Fixed numerous AiCount problems

25 years agoI got the order wrong earlier :I
Zeev Suraski [Sat, 5 Jun 1999 17:47:16 +0000 (17:47 +0000)]
I got the order wrong earlier :I

25 years agoNot sure that's the right fix, but at least it fixes the symptom
Zeev Suraski [Sat, 5 Jun 1999 13:56:18 +0000 (13:56 +0000)]
Not sure that's the right fix, but at least it fixes the symptom

25 years agoadd some .cvsignores
Sascha Schumann [Sat, 5 Jun 1999 10:48:05 +0000 (10:48 +0000)]
add some .cvsignores

25 years agoAdded preg_quote() function.
Andrey Hristov [Fri, 4 Jun 1999 13:56:23 +0000 (13:56 +0000)]
Added preg_quote() function.

25 years ago*** empty log message ***
Andrey Hristov [Fri, 4 Jun 1999 13:37:44 +0000 (13:37 +0000)]
*** empty log message ***

25 years agoNew $GLOBALS init
Zeev Suraski [Fri, 4 Jun 1999 13:09:24 +0000 (13:09 +0000)]
New $GLOBALS init

25 years agoFix UNIX MySQL build
Zeev Suraski [Fri, 4 Jun 1999 12:51:41 +0000 (12:51 +0000)]
Fix UNIX MySQL build

25 years agoFix that GLOBALS leak. We were explicitly adding GLOBALS to the main symbol table,
Zeev Suraski [Fri, 4 Jun 1999 12:22:19 +0000 (12:22 +0000)]
Fix that GLOBALS leak.  We were explicitly adding GLOBALS to the main symbol table,
but there's no reason to do it (INIT_GLOBALS takes care of it if necessary.)

25 years agoRemove old workspaces
Zeev Suraski [Fri, 4 Jun 1999 12:13:18 +0000 (12:13 +0000)]
Remove old workspaces

25 years agoMinor updates (mostly __declspec() stuff)
Zeev Suraski [Fri, 4 Jun 1999 11:44:02 +0000 (11:44 +0000)]
Minor updates (mostly __declspec() stuff)

25 years ago* Add a new workspace for dynamic PHP extensions.
Zeev Suraski [Fri, 4 Jun 1999 10:45:54 +0000 (10:45 +0000)]
* Add a new workspace for dynamic PHP extensions.
* Add a few functions to PHP's API.
* Get the MySQL extension up-to-date and thread safe.
* Add a project for building the MySQL extension under Win32.

25 years agoadded is_ref=0 and refcount=1 to SET_VAR_* macros
Thies C. Arntzen [Fri, 4 Jun 1999 09:04:05 +0000 (09:04 +0000)]
added is_ref=0 and refcount=1 to SET_VAR_* macros

25 years agoT_BAD_CHARACTER is actually a string.
Zeev Suraski [Thu, 3 Jun 1999 23:59:33 +0000 (23:59 +0000)]
T_BAD_CHARACTER is actually a string.

25 years ago- We weren't counting newlines in heredocs. The only place which is still questionable
Andi Gutmans [Thu, 3 Jun 1999 21:06:03 +0000 (21:06 +0000)]
- We weren't counting newlines in heredocs. The only place which is still questionable
is when there's a \ followed by a newline but it seems we have a parse error in this
case anyways.
- Fixed the alloca() macros so that the alloca() #define in win32 mode won't clash
with the real win32 alloca().

25 years agofunction dir doesn't exist anymore
Andrey Hristov [Tue, 1 Jun 1999 21:01:02 +0000 (21:01 +0000)]
function dir doesn't exist anymore

25 years ago*** empty log message ***
Andrey Hristov [Tue, 1 Jun 1999 20:31:39 +0000 (20:31 +0000)]
*** empty log message ***

25 years ago- Make execute() use less stack in thread-safe win32 due to Microsoft's shitty 256kb...
Andi Gutmans [Tue, 1 Jun 1999 18:47:53 +0000 (18:47 +0000)]
- Make execute() use less stack in thread-safe win32 due to Microsoft's shitty 256kb stack.

25 years agoavoid touching libraries which have not changed
Sascha Schumann [Tue, 1 Jun 1999 17:53:15 +0000 (17:53 +0000)]
avoid touching libraries which have not changed

25 years ago- Fix for exec to use API
Andi Gutmans [Tue, 1 Jun 1999 16:41:56 +0000 (16:41 +0000)]
- Fix for exec to use API

25 years agothread-safety fix
Zeev Suraski [Mon, 31 May 1999 19:58:20 +0000 (19:58 +0000)]
thread-safety fix

25 years ago*** empty log message ***
Zeev Suraski [Mon, 31 May 1999 18:39:29 +0000 (18:39 +0000)]
*** empty log message ***

25 years agoFixes
Andi Gutmans [Mon, 31 May 1999 18:33:12 +0000 (18:33 +0000)]
Fixes

25 years ago*** empty log message ***
Andi Gutmans [Mon, 31 May 1999 17:41:41 +0000 (17:41 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Zeev Suraski [Mon, 31 May 1999 17:40:15 +0000 (17:40 +0000)]
*** empty log message ***

25 years agopreg_match_all() now returns the number of global matches.
Andrey Hristov [Sun, 30 May 1999 14:48:39 +0000 (14:48 +0000)]
preg_match_all() now returns the number of global matches.

25 years ago* fix some casts
Sascha Schumann [Sun, 30 May 1999 13:28:56 +0000 (13:28 +0000)]
* fix some casts
* introduce unary_op_type - cleaner than casting data voids to function ptrs

25 years agokill some warnings
Sascha Schumann [Sun, 30 May 1999 12:00:06 +0000 (12:00 +0000)]
kill some warnings

25 years agozend_hash_merge was changed
Sascha Schumann [Sun, 30 May 1999 11:57:28 +0000 (11:57 +0000)]
zend_hash_merge was changed

25 years agoThat got fucked up when we went back to using uninitialized_zval
Zeev Suraski [Sat, 29 May 1999 23:37:26 +0000 (23:37 +0000)]
That got fucked up when we went back to using uninitialized_zval

25 years agoanother VPATH related change
Sascha Schumann [Sat, 29 May 1999 23:20:55 +0000 (23:20 +0000)]
another VPATH related change

25 years agoFix a bug
Zeev Suraski [Sat, 29 May 1999 22:26:28 +0000 (22:26 +0000)]
Fix a bug

25 years agoUpdated preg_split().
Andrey Hristov [Sat, 29 May 1999 20:45:00 +0000 (20:45 +0000)]
Updated preg_split().

25 years agoFix preg_match_all to do proper matching with \b.
Andrey Hristov [Sat, 29 May 1999 20:04:05 +0000 (20:04 +0000)]
Fix preg_match_all to do proper matching with \b.

25 years agoFixed PCRE so that global matching with patterns with \b works.
Andrey Hristov [Sat, 29 May 1999 19:38:50 +0000 (19:38 +0000)]
Fixed PCRE so that global matching with patterns with \b works.

25 years ago* Changed the way INI entries work in Apache to allow .conf entries to work right...
Zeev Suraski [Sat, 29 May 1999 19:06:22 +0000 (19:06 +0000)]
* Changed the way INI entries work in Apache to allow .conf entries to work right too.
* vpath fixes for standard Apache build

25 years agoSupport overwrite mode in zend_hash_merge()
Zeev Suraski [Sat, 29 May 1999 18:59:58 +0000 (18:59 +0000)]
Support overwrite mode in zend_hash_merge()

25 years agoFix
Zeev Suraski [Sat, 29 May 1999 18:28:46 +0000 (18:28 +0000)]
Fix

25 years ago- clean is not called from automake. use CLEANFILES instead
Sascha Schumann [Sat, 29 May 1999 18:13:14 +0000 (18:13 +0000)]
- clean is not called from automake. use CLEANFILES instead
- allow VPATH compilation

25 years agomore VPATH work
Sascha Schumann [Sat, 29 May 1999 18:11:49 +0000 (18:11 +0000)]
more VPATH work

25 years agokill warning
Sascha Schumann [Sat, 29 May 1999 16:20:55 +0000 (16:20 +0000)]
kill warning

25 years ago- fix APXS VPATH build
Sascha Schumann [Sat, 29 May 1999 16:15:21 +0000 (16:15 +0000)]
- fix APXS VPATH build
- libzend/TSRM build in their own directories
- ext/Makefile was generated twice

****NOTE******

If you use any kind of VPATH, you need to do a "make distclean" in your
libzend/TSRM directory, before running configure again.

25 years agoavoid crashing with php4 directives in .conf files (they still don't work)
Zeev Suraski [Sat, 29 May 1999 16:03:49 +0000 (16:03 +0000)]
avoid crashing with php4 directives in .conf files (they still don't work)

25 years agofixes
Zeev Suraski [Sat, 29 May 1999 15:10:06 +0000 (15:10 +0000)]
fixes

25 years agogetopt.h conflicted with system include file
Sascha Schumann [Sat, 29 May 1999 13:53:59 +0000 (13:53 +0000)]
getopt.h conflicted with system include file

25 years ago.
Sascha Schumann [Sat, 29 May 1999 12:15:04 +0000 (12:15 +0000)]
.

25 years agoCorrect fix
Zeev Suraski [Sat, 29 May 1999 12:00:32 +0000 (12:00 +0000)]
Correct fix

25 years ago*** empty log message ***
Zeev Suraski [Sat, 29 May 1999 11:02:37 +0000 (11:02 +0000)]
*** empty log message ***

25 years agoFix a leak
Zeev Suraski [Sat, 29 May 1999 11:01:50 +0000 (11:01 +0000)]
Fix a leak

25 years agono need for those
Zeev Suraski [Fri, 28 May 1999 22:42:17 +0000 (22:42 +0000)]
no need for those

25 years ago* Get Apache module to compile again with the regex stuff.
Zeev Suraski [Fri, 28 May 1999 22:41:48 +0000 (22:41 +0000)]
* Get Apache module to compile again with the regex stuff.
* Get Apache to propertly work with POST, and some SAPI fixes

25 years agothat seems to fix it
Sascha Schumann [Fri, 28 May 1999 21:41:17 +0000 (21:41 +0000)]
that seems to fix it

25 years agoEither I'm playing the EG(symbol_table) game wrong or var.c leaks memory
Sascha Schumann [Fri, 28 May 1999 21:27:19 +0000 (21:27 +0000)]
Either I'm playing the EG(symbol_table) game wrong or var.c leaks memory
when unserializing arrays/objects. Still testing

25 years ago-Modified PCRE library slightly to do what needs to be done
Andrey Hristov [Fri, 28 May 1999 20:54:52 +0000 (20:54 +0000)]
-Modified PCRE library slightly to do what needs to be done
-Updated preg_replace() code to handle stuff properly
-Removed ability to specify external PCRE library source to link against
(since our bundled version is patched now)

25 years agoI think that is the preferred way as of now
Sascha Schumann [Fri, 28 May 1999 18:51:51 +0000 (18:51 +0000)]
I think that is the preferred way as of now

25 years ago*** empty log message ***
Zeev Suraski [Fri, 28 May 1999 13:28:50 +0000 (13:28 +0000)]
*** empty log message ***

25 years ago* Support getThis() for internal functions.
Zeev Suraski [Fri, 28 May 1999 12:06:59 +0000 (12:06 +0000)]
* Support getThis() for internal functions.
* Fix 'new object or die' and AiCount issue thoroughly (earlier fix didn't
  work with the optimizer).
* Add new macros for standardized definition of classes.
* Only report AiCount problems if shutdown was not silent.

25 years ago* Use new Zend macros for standardized definition of classes.
Zeev Suraski [Fri, 28 May 1999 11:09:39 +0000 (11:09 +0000)]
* Use new Zend macros for standardized definition of classes.
* Reverse bogus shutdown order.
* Use the new object/class support of Zend to make the dir functions work again.

25 years agoSome innocent cleanups
Rasmus Lerdorf [Fri, 28 May 1999 03:54:15 +0000 (03:54 +0000)]
Some innocent cleanups

25 years agoWe don't need those there.
Andrey Hristov [Thu, 27 May 1999 14:02:29 +0000 (14:02 +0000)]
We don't need those there.

25 years agoReally fix the configuration now so that it's possible to compile both
Andrey Hristov [Thu, 27 May 1999 13:59:39 +0000 (13:59 +0000)]
Really fix the configuration now so that it's possible to compile both
against the bundled PCRE library and the one external to the source tree.
Crossing my fingers while Zeev compiles this. :)

25 years agoself-contained extensions please :-)
Stig Bakken [Thu, 27 May 1999 08:53:21 +0000 (08:53 +0000)]
self-contained extensions please :-)

25 years agoGenerate Visual Studio compatible error messages when compiling under Win32
Zeev Suraski [Thu, 27 May 1999 03:14:57 +0000 (03:14 +0000)]
Generate Visual Studio compatible error messages when compiling under Win32

25 years agoFix the AiCount issue with objects
Zeev Suraski [Thu, 27 May 1999 03:11:08 +0000 (03:11 +0000)]
Fix the AiCount issue with objects

25 years agoMoved all #define's for SET_ and RETURN_ to zend_API.h
Zeev Suraski [Thu, 27 May 1999 01:44:17 +0000 (01:44 +0000)]
Moved all #define's for SET_ and RETURN_ to zend_API.h

25 years ago- fix CGI build (at least)
Sascha Schumann [Thu, 27 May 1999 01:34:18 +0000 (01:34 +0000)]
- fix CGI build (at least)

25 years agoadd rfc1867.c
Sascha Schumann [Thu, 27 May 1999 01:20:52 +0000 (01:20 +0000)]
add rfc1867.c

25 years agoFix pcre build
Zeev Suraski [Thu, 27 May 1999 01:19:00 +0000 (01:19 +0000)]
Fix pcre build

25 years agoMoved all SET_ and RETURN_ macros to Zend
Zeev Suraski [Thu, 27 May 1999 00:45:31 +0000 (00:45 +0000)]
Moved all SET_ and RETURN_ macros to Zend
Fixed all RETVAL_ macros

25 years ago-Added PCRE library source
Andrey Hristov [Wed, 26 May 1999 21:47:57 +0000 (21:47 +0000)]
-Added PCRE library source
-Updated configuration process

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.