]> granicus.if.org Git - php/log
php
11 years agoFixed suppor for multibyte encoding
Dmitry Stogov [Thu, 10 Apr 2014 14:47:47 +0000 (18:47 +0400)]
Fixed suppor for multibyte encoding

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Thu, 10 Apr 2014 14:08:39 +0000 (18:08 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoFixed unserialize()
Dmitry Stogov [Thu, 10 Apr 2014 14:08:11 +0000 (18:08 +0400)]
Fixed unserialize()

11 years agoFix some ZTS issues and leaks
Nikita Popov [Thu, 10 Apr 2014 11:50:25 +0000 (13:50 +0200)]
Fix some ZTS issues and leaks

11 years agoPort tokenizer extension
Nikita Popov [Thu, 10 Apr 2014 09:44:45 +0000 (11:44 +0200)]
Port tokenizer extension

11 years agoCompatibility fix for ext/session/tests/session_id_error3.phpt
Dmitry Stogov [Thu, 10 Apr 2014 08:29:14 +0000 (12:29 +0400)]
Compatibility fix for ext/session/tests/session_id_error3.phpt

11 years agoFixed test (it requires ext/hash)
Dmitry Stogov [Thu, 10 Apr 2014 08:14:11 +0000 (12:14 +0400)]
Fixed test (it requires ext/hash)

11 years agoFixed access to uninitialized data
Dmitry Stogov [Thu, 10 Apr 2014 06:38:40 +0000 (10:38 +0400)]
Fixed access to uninitialized data

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Wed, 9 Apr 2014 23:22:06 +0000 (03:22 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoIS_INTERNED is not always 0 in ZTS
Nikita Popov [Wed, 9 Apr 2014 21:54:03 +0000 (23:54 +0200)]
IS_INTERNED is not always 0 in ZTS

The current implementation chooses to intern "" in ZTS. Either that
should be removed or IS_INTERNED needs to actually check the flag.

11 years agovar_push_dtor_no_addref() is useles (var_push_dtor() doesn't work properly as well)
Dmitry Stogov [Wed, 9 Apr 2014 21:49:26 +0000 (01:49 +0400)]
var_push_dtor_no_addref() is useles (var_push_dtor() doesn't work properly as well)

11 years agoFix copying of constants for ZTS
Nikita Popov [Wed, 9 Apr 2014 21:00:49 +0000 (23:00 +0200)]
Fix copying of constants for ZTS

Just a quick hack, should probably add an internal_copy_ctor
function for this.

11 years agoFix function copying in ZTS
Nikita Popov [Wed, 9 Apr 2014 19:40:01 +0000 (21:40 +0200)]
Fix function copying in ZTS

Still doesn't entirely work :/

11 years agoFix ZTS build
Nikita Popov [Wed, 9 Apr 2014 13:51:28 +0000 (15:51 +0200)]
Fix ZTS build

This only makes it compile, it doesn't actually work, presumably
because interned strings are assumed in some places.

11 years agoTemporary refcounting fix
Dmitry Stogov [Wed, 9 Apr 2014 21:08:52 +0000 (01:08 +0400)]
Temporary refcounting fix

11 years agotypo
Dmitry Stogov [Wed, 9 Apr 2014 20:22:13 +0000 (00:22 +0400)]
typo

11 years agoFixed ext/spl/tests/iterator_035.phpt
Dmitry Stogov [Wed, 9 Apr 2014 19:49:58 +0000 (23:49 +0400)]
Fixed ext/spl/tests/iterator_035.phpt

11 years agoFixed resource to integer conversion
Dmitry Stogov [Wed, 9 Apr 2014 18:31:40 +0000 (22:31 +0400)]
Fixed resource to integer conversion

11 years agoFixed macro
Dmitry Stogov [Wed, 9 Apr 2014 18:23:22 +0000 (22:23 +0400)]
Fixed macro

11 years agoFixed reference counting
Dmitry Stogov [Wed, 9 Apr 2014 14:11:18 +0000 (18:11 +0400)]
Fixed reference counting

11 years agoRemoved useless code
Dmitry Stogov [Wed, 9 Apr 2014 13:55:40 +0000 (17:55 +0400)]
Removed useless code

11 years agoFixed error reporting
Dmitry Stogov [Wed, 9 Apr 2014 13:08:52 +0000 (17:08 +0400)]
Fixed error reporting

11 years agoFixed reference counting
Dmitry Stogov [Wed, 9 Apr 2014 13:02:13 +0000 (17:02 +0400)]
Fixed reference counting

11 years agoFixed reference counting
Dmitry Stogov [Wed, 9 Apr 2014 12:48:03 +0000 (16:48 +0400)]
Fixed reference counting

11 years agoFixed GC
Dmitry Stogov [Wed, 9 Apr 2014 11:26:45 +0000 (15:26 +0400)]
Fixed GC

11 years agoFixed reference counting
Dmitry Stogov [Wed, 9 Apr 2014 11:05:22 +0000 (15:05 +0400)]
Fixed reference counting

11 years agoFixed ArrayObject::sort() family
Dmitry Stogov [Wed, 9 Apr 2014 10:25:35 +0000 (14:25 +0400)]
Fixed ArrayObject::sort() family

11 years agoFixed support for IS_INDIRECT and IS_REFERENCE
Dmitry Stogov [Wed, 9 Apr 2014 09:23:28 +0000 (13:23 +0400)]
Fixed support for IS_INDIRECT and IS_REFERENCE

11 years agoUse proper size
Dmitry Stogov [Wed, 9 Apr 2014 08:16:21 +0000 (12:16 +0400)]
Use proper size

11 years agoFixed NULL pointer dereferencing
Dmitry Stogov [Wed, 9 Apr 2014 07:56:48 +0000 (11:56 +0400)]
Fixed NULL pointer dereferencing

11 years agoFixed NULL pointer dereferencing
Dmitry Stogov [Wed, 9 Apr 2014 07:39:39 +0000 (11:39 +0400)]
Fixed NULL pointer dereferencing

11 years agoUnset CV before calling zval_ptr_dtor(), because its destructor may bailout and stay...
Dmitry Stogov [Wed, 9 Apr 2014 06:47:24 +0000 (10:47 +0400)]
Unset CV before calling zval_ptr_dtor(), because its destructor may bailout and stay CV value in inconsistet state

11 years agoFixed generator destruction
Dmitry Stogov [Wed, 9 Apr 2014 06:47:03 +0000 (10:47 +0400)]
Fixed generator destruction

11 years agoFixed store of "shared" zend_strings
Dmitry Stogov [Wed, 9 Apr 2014 05:43:42 +0000 (09:43 +0400)]
Fixed store of "shared" zend_strings

11 years agoFixed destruction of objects and iterators on unclean request shutdown and GC (few...
Dmitry Stogov [Tue, 8 Apr 2014 21:50:15 +0000 (01:50 +0400)]
Fixed destruction of objects and iterators on unclean request shutdown and GC (few cases are still unfixed).
Now we destroy objects it two steps. At first - object properties of all objects and only then the objects their selves.

11 years agoOptimized ASSIGN_OP
Dmitry Stogov [Mon, 7 Apr 2014 22:25:49 +0000 (02:25 +0400)]
Optimized ASSIGN_OP

11 years agoIS_CONST can't be a reference
Dmitry Stogov [Mon, 7 Apr 2014 20:52:07 +0000 (00:52 +0400)]
IS_CONST can't be a reference

11 years agoOptimized ZEND_FETCH_R and family
Dmitry Stogov [Mon, 7 Apr 2014 20:38:54 +0000 (00:38 +0400)]
Optimized ZEND_FETCH_R and family

11 years agoRefactored zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and family...
Dmitry Stogov [Mon, 7 Apr 2014 19:14:17 +0000 (23:14 +0400)]
Refactored zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and family require second argument to be real pointer.
&(ht)->nInternalPointer should be passed instead of NULL.
zend_hash_update_current_key() may work only with internal pointer.

11 years agoAllocate HashTable->arData and HashTable->arHash at once
Dmitry Stogov [Mon, 7 Apr 2014 14:22:03 +0000 (18:22 +0400)]
Allocate HashTable->arData and HashTable->arHash at once

11 years agoCleanup
Dmitry Stogov [Mon, 7 Apr 2014 12:50:41 +0000 (16:50 +0400)]
Cleanup

11 years agoOptimized ISSET_ISEMPTY_DIM_OBJ
Dmitry Stogov [Mon, 7 Apr 2014 10:56:34 +0000 (14:56 +0400)]
Optimized ISSET_ISEMPTY_DIM_OBJ

11 years ago"incremental" hash bucket initialization
Dmitry Stogov [Mon, 7 Apr 2014 09:31:44 +0000 (13:31 +0400)]
"incremental" hash bucket initialization

11 years agodon't use memset() for array of zval initialization
Dmitry Stogov [Mon, 7 Apr 2014 08:14:44 +0000 (12:14 +0400)]
don't use memset() for array of zval initialization

11 years agoUse macros
Dmitry Stogov [Mon, 7 Apr 2014 06:57:58 +0000 (10:57 +0400)]
Use macros

11 years agoAvoid double zval copying in ZEND_SEND_VAL and zend_send_by_var_helper
Dmitry Stogov [Fri, 4 Apr 2014 22:14:17 +0000 (02:14 +0400)]
Avoid double zval copying in ZEND_SEND_VAL and zend_send_by_var_helper

11 years agoOptimized ZEND_FETCH_DIM_*
Dmitry Stogov [Fri, 4 Apr 2014 21:56:51 +0000 (01:56 +0400)]
Optimized ZEND_FETCH_DIM_*

11 years agoRefactored IS_INDIRECT IS_VAR passing between opcodes to avoid reference counting
Dmitry Stogov [Fri, 4 Apr 2014 15:01:53 +0000 (19:01 +0400)]
Refactored IS_INDIRECT IS_VAR passing between opcodes to avoid reference counting

11 years agoTergets of ASSIGN and ASSIGN_REF don't have to be initialized
Dmitry Stogov [Fri, 4 Apr 2014 11:22:41 +0000 (15:22 +0400)]
Tergets of ASSIGN and ASSIGN_REF don't have to be initialized

11 years agoOptimized RECV_* opcodes
Dmitry Stogov [Fri, 4 Apr 2014 10:36:34 +0000 (14:36 +0400)]
Optimized RECV_* opcodes

11 years agoConstant duplication optimization
Dmitry Stogov [Thu, 3 Apr 2014 23:55:27 +0000 (03:55 +0400)]
Constant duplication optimization
Argument receiving optimization

11 years agoVarious VM optimizations
Dmitry Stogov [Thu, 3 Apr 2014 22:52:53 +0000 (02:52 +0400)]
Various VM optimizations

11 years agoASSIGN_REF optimization
Dmitry Stogov [Thu, 3 Apr 2014 12:53:30 +0000 (16:53 +0400)]
ASSIGN_REF optimization

11 years agoRefactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), candidat...
Dmitry Stogov [Thu, 3 Apr 2014 11:26:23 +0000 (15:26 +0400)]
Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), candidate for GC, etc)

11 years agoChanged data layout to allow more efficient operations
Dmitry Stogov [Wed, 2 Apr 2014 10:34:44 +0000 (14:34 +0400)]
Changed data layout to allow more efficient operations

11 years agoFixed 0 index handling
Dmitry Stogov [Wed, 2 Apr 2014 08:09:05 +0000 (12:09 +0400)]
Fixed 0 index handling

11 years agoAvoid unnecessary zval separations
Dmitry Stogov [Tue, 1 Apr 2014 21:56:16 +0000 (01:56 +0400)]
Avoid unnecessary zval separations

11 years agoUse "fast" comparison function
Dmitry Stogov [Tue, 1 Apr 2014 20:48:26 +0000 (00:48 +0400)]
Use "fast" comparison function

11 years agoAvoid useless memset()
Dmitry Stogov [Tue, 1 Apr 2014 19:56:45 +0000 (23:56 +0400)]
Avoid useless memset()

11 years agoAvoid unnecessary zval separations
Dmitry Stogov [Tue, 1 Apr 2014 19:44:42 +0000 (23:44 +0400)]
Avoid unnecessary zval separations

11 years agoAvoid unnecessry reallocations
Dmitry Stogov [Tue, 1 Apr 2014 19:27:51 +0000 (23:27 +0400)]
Avoid unnecessry reallocations

11 years agoAvoid unnecessry reallocations
Dmitry Stogov [Tue, 1 Apr 2014 18:36:17 +0000 (22:36 +0400)]
Avoid unnecessry reallocations

11 years agoAvoid unnecessry reallocation
Dmitry Stogov [Tue, 1 Apr 2014 17:19:44 +0000 (21:19 +0400)]
Avoid unnecessry reallocation

11 years agoUse interned strings for one character strings
Dmitry Stogov [Tue, 1 Apr 2014 14:06:50 +0000 (18:06 +0400)]
Use interned strings for one character strings

11 years agoUse STR_COPY() instead of STR_DUP() where possible
Dmitry Stogov [Tue, 1 Apr 2014 13:10:15 +0000 (17:10 +0400)]
Use STR_COPY() instead of STR_DUP() where possible

11 years agoSTR_DUP() doesn't duplicate interned strings anymore. In case new string is required...
Dmitry Stogov [Tue, 1 Apr 2014 12:31:03 +0000 (16:31 +0400)]
STR_DUP() doesn't duplicate interned strings anymore. In case new string is required STR_INIT() or STR_ALLOC() should be used.

11 years agoStore constant flags
Dmitry Stogov [Tue, 1 Apr 2014 12:30:13 +0000 (16:30 +0400)]
Store constant flags

11 years agoFixed parameter passing
Dmitry Stogov [Tue, 1 Apr 2014 10:42:04 +0000 (14:42 +0400)]
Fixed parameter passing

11 years agoIn case the string can't be interned it must not be released
Dmitry Stogov [Tue, 1 Apr 2014 10:35:34 +0000 (14:35 +0400)]
In case the string can't be interned it must not be released

11 years agoExclude interned flags from constant flags
Dmitry Stogov [Tue, 1 Apr 2014 10:20:10 +0000 (14:20 +0400)]
Exclude interned flags from constant flags

11 years agoAdded check for interned strings
Dmitry Stogov [Tue, 1 Apr 2014 10:19:43 +0000 (14:19 +0400)]
Added check for interned strings

11 years agoFixed char*/zend_string* mess
Dmitry Stogov [Tue, 1 Apr 2014 09:57:23 +0000 (13:57 +0400)]
Fixed char*/zend_string* mess

11 years agoFixed script size calculation
Dmitry Stogov [Tue, 1 Apr 2014 09:04:33 +0000 (13:04 +0400)]
Fixed script size calculation

11 years agoKeep constnat flags
Dmitry Stogov [Tue, 1 Apr 2014 08:20:16 +0000 (12:20 +0400)]
Keep constnat flags

11 years agoFixed support for arg_info and type hinfing (TODO: names should be interned)
Dmitry Stogov [Tue, 1 Apr 2014 07:44:11 +0000 (11:44 +0400)]
Fixed support for arg_info and type hinfing (TODO: names should be interned)

11 years agofunction_name might be shared across few op_arrays (inherited methods)
Dmitry Stogov [Tue, 1 Apr 2014 07:29:22 +0000 (11:29 +0400)]
function_name might be shared across few op_arrays (inherited methods)

11 years agoFixed optimizer
Dmitry Stogov [Tue, 1 Apr 2014 07:04:12 +0000 (11:04 +0400)]
Fixed optimizer

11 years agoFixed optimizer (incomplete)
Dmitry Stogov [Mon, 31 Mar 2014 21:53:33 +0000 (01:53 +0400)]
Fixed optimizer (incomplete)

11 years agoFixed interned strings support
Dmitry Stogov [Mon, 31 Mar 2014 20:50:25 +0000 (00:50 +0400)]
Fixed interned strings support

11 years agofixes
Dmitry Stogov [Mon, 31 Mar 2014 19:38:37 +0000 (23:38 +0400)]
fixes

11 years agoOptimizer related fixes (incomplete)
Dmitry Stogov [Mon, 31 Mar 2014 14:13:16 +0000 (18:13 +0400)]
Optimizer related fixes (incomplete)

11 years agofixed craches at request shutdown and memory leaks
Dmitry Stogov [Mon, 31 Mar 2014 12:09:45 +0000 (16:09 +0400)]
fixed craches at request shutdown and memory leaks

11 years agoMake opcache work (incomplete - optimizer doesn't work yet; crashes on request shutdown)
Dmitry Stogov [Mon, 31 Mar 2014 09:11:58 +0000 (13:11 +0400)]
Make opcache work (incomplete - optimizer doesn't work yet; crashes on request shutdown)

11 years agoFixed null pointer dereference
Xinchen Hui [Sun, 30 Mar 2014 09:53:17 +0000 (17:53 +0800)]
Fixed null pointer dereference

11 years agoFixed smart_str_setl
Xinchen Hui [Sun, 30 Mar 2014 09:50:42 +0000 (17:50 +0800)]
Fixed smart_str_setl

11 years agoFixed retval for ps_call_handler
Xinchen Hui [Sat, 29 Mar 2014 12:17:59 +0000 (20:17 +0800)]
Fixed retval for ps_call_handler

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Sat, 29 Mar 2014 09:40:34 +0000 (17:40 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoRefactor session (incompleted)
Xinchen Hui [Sat, 29 Mar 2014 09:39:26 +0000 (17:39 +0800)]
Refactor session (incompleted)

11 years agoext/opcache refactoring (incomplete)
Dmitry Stogov [Fri, 28 Mar 2014 19:34:49 +0000 (23:34 +0400)]
ext/opcache refactoring (incomplete)

11 years agoRefactor session (incompleted)
Xinchen Hui [Fri, 28 Mar 2014 10:46:25 +0000 (18:46 +0800)]
Refactor session (incompleted)

11 years agoRefactored data structures to keep zend_object* instead of a whole zval in some places
Dmitry Stogov [Thu, 27 Mar 2014 22:11:22 +0000 (02:11 +0400)]
Refactored data structures to keep zend_object* instead of a whole zval in some places

11 years agoFixed support for references & cleanup
Dmitry Stogov [Thu, 27 Mar 2014 14:14:57 +0000 (18:14 +0400)]
Fixed support for references & cleanup

11 years agocleanup
Dmitry Stogov [Thu, 27 Mar 2014 14:14:42 +0000 (18:14 +0400)]
cleanup

11 years agoFixed memory leak
Dmitry Stogov [Thu, 27 Mar 2014 12:43:40 +0000 (16:43 +0400)]
Fixed memory leak

11 years agoUse CV variable offset instead of CV variable number
Dmitry Stogov [Thu, 27 Mar 2014 12:00:25 +0000 (16:00 +0400)]
Use CV variable offset instead of CV variable number

11 years agoCleanup
Dmitry Stogov [Thu, 27 Mar 2014 10:55:52 +0000 (14:55 +0400)]
Cleanup

11 years agoUse ZVAL_DEREF() macro
Dmitry Stogov [Thu, 27 Mar 2014 09:39:09 +0000 (13:39 +0400)]
Use ZVAL_DEREF() macro

11 years agoReplaced (Z_TYPE(x) == IS_REFERENCE) with (Z_ISREF(x))
Dmitry Stogov [Thu, 27 Mar 2014 07:50:45 +0000 (11:50 +0400)]
Replaced (Z_TYPE(x) == IS_REFERENCE) with (Z_ISREF(x))

11 years agoTypo
Dmitry Stogov [Thu, 27 Mar 2014 07:40:59 +0000 (11:40 +0400)]
Typo

11 years agoInlined "slow" CV lookup code (now it's cheap)
Dmitry Stogov [Thu, 27 Mar 2014 07:19:34 +0000 (11:19 +0400)]
Inlined "slow" CV lookup code (now it's cheap)
Removed expectations for undefined CV acess for BP_VAR_W and BP_VAR_IS modes