]> granicus.if.org Git - php/log
php
11 years agoFixed memory leak
Dmitry Stogov [Fri, 11 Apr 2014 14:15:53 +0000 (18:15 +0400)]
Fixed memory leak

11 years agoFixed double free
Dmitry Stogov [Fri, 11 Apr 2014 12:48:38 +0000 (16:48 +0400)]
Fixed double free

11 years agoFixed memory leaks
Dmitry Stogov [Fri, 11 Apr 2014 11:29:37 +0000 (15:29 +0400)]
Fixed memory leaks

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Fri, 11 Apr 2014 11:06:01 +0000 (15:06 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoFixed support for references
Dmitry Stogov [Fri, 11 Apr 2014 11:05:12 +0000 (15:05 +0400)]
Fixed support for references

11 years agoFixed memory leaks
Dmitry Stogov [Fri, 11 Apr 2014 10:47:53 +0000 (14:47 +0400)]
Fixed memory leaks

11 years agofixed persistent reaource destruction
Dmitry Stogov [Fri, 11 Apr 2014 10:47:38 +0000 (14:47 +0400)]
fixed persistent reaource destruction

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Fri, 11 Apr 2014 10:08:11 +0000 (18:08 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoRefactor libxml (incompleted)
Xinchen Hui [Fri, 11 Apr 2014 10:07:25 +0000 (18:07 +0800)]
Refactor libxml (incompleted)

11 years agoFixed srialize()
Dmitry Stogov [Fri, 11 Apr 2014 09:44:23 +0000 (13:44 +0400)]
Fixed srialize()

11 years agoFixed tests (added session_destroy() to avoid side effects on the following tests)
Dmitry Stogov [Fri, 11 Apr 2014 09:17:59 +0000 (13:17 +0400)]
Fixed tests (added session_destroy() to avoid side effects on the following tests)

11 years agoFixed tests (they might fail from time to time because of session GC)
Dmitry Stogov [Fri, 11 Apr 2014 08:43:35 +0000 (12:43 +0400)]
Fixed tests (they might fail from time to time because of session GC)

11 years agoFixed reference counting
Dmitry Stogov [Fri, 11 Apr 2014 08:43:22 +0000 (12:43 +0400)]
Fixed reference counting

11 years agoNo need anymore
Xinchen Hui [Fri, 11 Apr 2014 08:30:19 +0000 (16:30 +0800)]
No need anymore

11 years agoFixed support for references
Dmitry Stogov [Fri, 11 Apr 2014 07:15:31 +0000 (11:15 +0400)]
Fixed support for references

11 years agohmm, make it consistent
Xinchen Hui [Fri, 11 Apr 2014 04:54:42 +0000 (12:54 +0800)]
hmm, make it consistent

11 years agoFixed _php_mbstr_parse_mail_headers
Xinchen Hui [Fri, 11 Apr 2014 04:53:35 +0000 (12:53 +0800)]
Fixed _php_mbstr_parse_mail_headers

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Fri, 11 Apr 2014 04:34:06 +0000 (12:34 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoClose all files and resources before before destroying object storage, because resour...
Dmitry Stogov [Thu, 10 Apr 2014 22:22:00 +0000 (02:22 +0400)]
Close all files and resources before before destroying object storage, because resources may point to objects. (THIS CHANGE MAY BE DANGEROUS)

11 years agoIntroduced API to close all resources at once
Dmitry Stogov [Thu, 10 Apr 2014 22:21:06 +0000 (02:21 +0400)]
Introduced API to close all resources at once

11 years agoFixed memory leak
Dmitry Stogov [Thu, 10 Apr 2014 19:36:16 +0000 (23:36 +0400)]
Fixed memory leak

11 years agoFixed tests (added missing zend.multibyte=On)
Dmitry Stogov [Thu, 10 Apr 2014 19:07:00 +0000 (23:07 +0400)]
Fixed tests (added missing zend.multibyte=On)

11 years agofixed serialize()
Dmitry Stogov [Thu, 10 Apr 2014 18:44:39 +0000 (22:44 +0400)]
fixed serialize()

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 agosession_id is binary safe now
Xinchen Hui [Thu, 10 Apr 2014 03:57:34 +0000 (11:57 +0800)]
session_id is binary safe now

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)