]>
granicus.if.org Git - php/log
Xinchen Hui [Fri, 25 Apr 2014 02:44:21 +0000 (10:44 +0800)]
Fixed register bound parameters in execute
Xinchen Hui [Fri, 25 Apr 2014 02:27:23 +0000 (10:27 +0800)]
Fixed refcount of dbh (we don't need another refcount anymore)
Dmitry Stogov [Thu, 24 Apr 2014 20:57:12 +0000 (00:57 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Thu, 24 Apr 2014 20:56:15 +0000 (00:56 +0400)]
Optimized constant lookup
Xinchen Hui [Thu, 24 Apr 2014 15:29:20 +0000 (23:29 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Thu, 24 Apr 2014 15:15:30 +0000 (19:15 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Thu, 24 Apr 2014 15:14:29 +0000 (19:14 +0400)]
Reimplement strtr()
Xinchen Hui [Thu, 24 Apr 2014 14:43:30 +0000 (22:43 +0800)]
Fixed Aggregate
Xinchen Hui [Thu, 24 Apr 2014 13:14:57 +0000 (21:14 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Thu, 24 Apr 2014 13:14:36 +0000 (21:14 +0800)]
Various bugs fixed
Dmitry Stogov [Thu, 24 Apr 2014 11:53:20 +0000 (15:53 +0400)]
Redesigned zend_execute_data layout now EX(object), EX(scope) and EX(called_scope) arr properties of the current function execution co
ntext. They are set during zend_execute_data initialization and never changed.
Xinchen Hui [Thu, 24 Apr 2014 02:18:39 +0000 (10:18 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Nikita Popov [Wed, 23 Apr 2014 20:33:38 +0000 (22:33 +0200)]
Small zts fix
Nikita Popov [Wed, 23 Apr 2014 18:33:16 +0000 (20:33 +0200)]
Fix strict array comparison
Fixes Symfony test failures
Nikita Popov [Wed, 23 Apr 2014 18:05:57 +0000 (20:05 +0200)]
Port ext/hash
Unsure what to do about hash_final
Nikita Popov [Wed, 23 Apr 2014 17:05:16 +0000 (19:05 +0200)]
Allocate zend_strings with correct size
For me (32bit) sizeof(zend_string) is 20, which means that the
char[1] array at the end is padded with three bytes. Thus allocating
based on sizeof(zend_string)-1 overallocates by those 3 padding bytes.
This commit fixes the allocation size, by using XtOffsetOf.
Nikita Popov [Wed, 23 Apr 2014 16:30:24 +0000 (18:30 +0200)]
Fix ZTS build
Xinchen Hui [Wed, 23 Apr 2014 03:41:57 +0000 (11:41 +0800)]
Refactor pdo_sqlite (only compilable)
Xinchen Hui [Wed, 23 Apr 2014 02:58:08 +0000 (10:58 +0800)]
Clean up (use zend_string and foreach macros)
Dmitry Stogov [Tue, 22 Apr 2014 22:47:41 +0000 (02:47 +0400)]
Use symbolic names instead of magic constants + optimization
Nikita Popov [Tue, 22 Apr 2014 19:33:49 +0000 (21:33 +0200)]
Initialize hash as unpacked if it contains string keys
Nikita Popov [Tue, 22 Apr 2014 17:39:13 +0000 (19:39 +0200)]
Fix zts
Nikita Popov [Tue, 22 Apr 2014 15:54:34 +0000 (17:54 +0200)]
Pass expected array size hint in INIT_ARRAY
To avoid unnecessary rehashes
Xinchen Hui [Tue, 22 Apr 2014 16:18:18 +0000 (00:18 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Tue, 22 Apr 2014 16:17:29 +0000 (00:17 +0800)]
Refactored sqlite3 (all tests passes)
Dmitry Stogov [Tue, 22 Apr 2014 14:52:59 +0000 (18:52 +0400)]
Fixed compilaation warnings
Dmitry Stogov [Tue, 22 Apr 2014 13:46:34 +0000 (17:46 +0400)]
Fixed compilation warnings
Xinchen Hui [Tue, 22 Apr 2014 11:10:19 +0000 (19:10 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Tue, 22 Apr 2014 11:08:58 +0000 (19:08 +0800)]
Fixed segfault cause EG(This) is modified
Dmitry Stogov [Tue, 22 Apr 2014 10:38:00 +0000 (14:38 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Tue, 22 Apr 2014 10:29:56 +0000 (18:29 +0800)]
USE ZEND_HASH_FOREACH_* macros
Xinchen Hui [Tue, 22 Apr 2014 10:23:47 +0000 (18:23 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Tue, 22 Apr 2014 10:23:03 +0000 (18:23 +0800)]
Refactor PDO (only compilable now)
Dmitry Stogov [Tue, 22 Apr 2014 09:11:07 +0000 (13:11 +0400)]
Fixed typo
Dmitry Stogov [Tue, 22 Apr 2014 09:10:53 +0000 (13:10 +0400)]
Optimized ZEND_SEND_REF
Dmitry Stogov [Tue, 22 Apr 2014 08:33:00 +0000 (12:33 +0400)]
ZEND_SEND_* optimization
Dmitry Stogov [Tue, 22 Apr 2014 06:11:41 +0000 (10:11 +0400)]
Cache knowledge about missing property_info
Xinchen Hui [Tue, 22 Apr 2014 03:59:53 +0000 (11:59 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Mon, 21 Apr 2014 22:34:34 +0000 (02:34 +0400)]
Use shorter call chain
Dmitry Stogov [Mon, 21 Apr 2014 22:03:10 +0000 (02:03 +0400)]
Use fast comparison function
Dmitry Stogov [Mon, 21 Apr 2014 21:41:40 +0000 (01:41 +0400)]
Chiper __autoload() function caching
Dmitry Stogov [Mon, 21 Apr 2014 21:41:09 +0000 (01:41 +0400)]
Avoid string duplication
Dmitry Stogov [Mon, 21 Apr 2014 20:32:29 +0000 (00:32 +0400)]
zend_isset_isempty_dim_prop_obj_handler() split into separate handlers. (Actually, it shared near nothing)
Dmitry Stogov [Mon, 21 Apr 2014 19:32:36 +0000 (23:32 +0400)]
Reverted chunk committed by mistake
Dmitry Stogov [Mon, 21 Apr 2014 19:30:19 +0000 (23:30 +0400)]
Handle references in "slow path"
Dmitry Stogov [Mon, 21 Apr 2014 18:36:01 +0000 (22:36 +0400)]
Convert zval_get_string() into "fast path" macro and "slow path" function
Dmitry Stogov [Mon, 21 Apr 2014 17:39:15 +0000 (21:39 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Mon, 21 Apr 2014 17:38:44 +0000 (21:38 +0400)]
Fast path for pre/post inc/dec
Nikita Popov [Mon, 21 Apr 2014 15:51:15 +0000 (17:51 +0200)]
Use zval_get_string in a few more places
Nikita Popov [Mon, 21 Apr 2014 15:12:10 +0000 (17:12 +0200)]
Use zval_get_string in print_zval and propagate TSRMLS
Nikita Popov [Mon, 21 Apr 2014 15:10:35 +0000 (17:10 +0200)]
Bring zval_get_string implement in line with make_printable_zval
As make_printable_zval is the "main" string cast, match that one.
Dmitry Stogov [Mon, 21 Apr 2014 14:25:34 +0000 (18:25 +0400)]
Combine HashTable.flags and HashTable.nApplyCount into single 32-bit word
Dmitry Stogov [Mon, 21 Apr 2014 12:34:40 +0000 (16:34 +0400)]
Cleanup
Dmitry Stogov [Mon, 21 Apr 2014 11:18:19 +0000 (15:18 +0400)]
Use alloca() for temporary allocation
Dmitry Stogov [Mon, 21 Apr 2014 11:18:05 +0000 (15:18 +0400)]
Inline simple function
Dmitry Stogov [Mon, 21 Apr 2014 11:17:48 +0000 (15:17 +0400)]
Removed duplicate code
Dmitry Stogov [Mon, 21 Apr 2014 10:20:05 +0000 (14:20 +0400)]
Use ZEND_HASH_FOREACH_* macros
Dmitry Stogov [Mon, 21 Apr 2014 09:55:25 +0000 (13:55 +0400)]
Use ZEND_HASH_FOEACH_* instead of zend_hash_apply_*
Dmitry Stogov [Mon, 21 Apr 2014 09:19:52 +0000 (13:19 +0400)]
Avoid useles copy ctor
Xinchen Hui [Mon, 21 Apr 2014 06:14:00 +0000 (14:14 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Fri, 18 Apr 2014 20:08:14 +0000 (00:08 +0400)]
More ZEND_HASH_FOREACH_* related changes
Dmitry Stogov [Fri, 18 Apr 2014 17:49:07 +0000 (21:49 +0400)]
ZEND_HASH_FOREACH_* usage
Dmitry Stogov [Fri, 18 Apr 2014 15:20:39 +0000 (19:20 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Nikita Popov [Fri, 18 Apr 2014 15:19:46 +0000 (17:19 +0200)]
Revert "Fix include/eval with custom zend_execute"
This reverts commit
ead8a6636d5f3fc01397addfcbd87b56e79f5b89 .
Nikita Popov [Fri, 18 Apr 2014 15:19:31 +0000 (17:19 +0200)]
Revert "Fix zend_eval_string (and as such assert + dom tests)"
This reverts commit
64cc5a72e2695962676c6fe4a96779d554d4ab24 .
Dmitry Stogov [Fri, 18 Apr 2014 15:18:11 +0000 (19:18 +0400)]
Use ZEND_FETCH_FOREACH_* macros to iterate over HashTables instead of zend_hash_move_forward() and family.
Nikita Popov [Fri, 18 Apr 2014 12:35:59 +0000 (14:35 +0200)]
Fix zend_eval_string (and as such assert + dom tests)
Nikita Popov [Fri, 18 Apr 2014 11:44:19 +0000 (13:44 +0200)]
Fix include/eval with custom zend_execute
Dmitry Stogov [Fri, 18 Apr 2014 09:46:36 +0000 (13:46 +0400)]
Optimized zend_leave_helper()
Nikita Popov [Thu, 17 Apr 2014 22:09:41 +0000 (00:09 +0200)]
Fix libxml external entity loading
Nikita Popov [Thu, 17 Apr 2014 22:03:38 +0000 (00:03 +0200)]
Move libxml_destroy_fci to RSHUTDOWN
If this is only done in post shutdown and the function name is
an object (e.g. closure), the object will already be freed during
zend_deactivate.
I left the rest of the shutdown procedure in post shutdown, as it
presumably has a reason to be there...
Nikita Popov [Thu, 17 Apr 2014 21:29:35 +0000 (23:29 +0200)]
Fix libxml/sxe/dom node import/export
Also fix sxe zts.
Dmitry Stogov [Thu, 17 Apr 2014 17:15:02 +0000 (21:15 +0400)]
Optimize CASE(TRUE, X) into BOOL(X) (this pattern affects wordpress)
Dmitry Stogov [Thu, 17 Apr 2014 13:21:59 +0000 (17:21 +0400)]
Fixed support for references
Dmitry Stogov [Thu, 17 Apr 2014 12:36:04 +0000 (16:36 +0400)]
Cache op_array->run_time_cache in zend_execute_data for faster access
Dmitry Stogov [Thu, 17 Apr 2014 12:10:16 +0000 (16:10 +0400)]
Use local variables instead of opline operands to access cache_slots
Dmitry Stogov [Thu, 17 Apr 2014 11:40:45 +0000 (15:40 +0400)]
Moved zend_literal->cache_slot right into zval.
It should be accessed using Z_CACHE_SLOT() macro.
zend_literal structure is removed.
API functions that accepted pointer to zend_literal now accept pointer to zval or cache_slot directly.
Calls of such functiond that now accept cache_slot need to be changed to pass -1 instead of NULL.
Dmitry Stogov [Thu, 17 Apr 2014 07:12:47 +0000 (11:12 +0400)]
Fixed ZEND_CAST related optimizations (now it returns IS_VAR instead of IS_TMP_VAR)
Dmitry Stogov [Wed, 16 Apr 2014 22:12:52 +0000 (02:12 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Wed, 16 Apr 2014 22:12:06 +0000 (02:12 +0400)]
Fixed support for unspecialized and GOTO and SWITCH executor
Nikita Popov [Wed, 16 Apr 2014 20:39:01 +0000 (22:39 +0200)]
Don't copy in ZEND_CAST if type is already correct
Dmitry Stogov [Wed, 16 Apr 2014 18:42:37 +0000 (22:42 +0400)]
Prevented modification of original name
Dmitry Stogov [Wed, 16 Apr 2014 18:42:15 +0000 (22:42 +0400)]
Prevented modification of interned string
Dmitry Stogov [Wed, 16 Apr 2014 18:41:07 +0000 (22:41 +0400)]
op_array->function_name, op_array->doc_comments and op_array->filename may be kept in opcache SHM
Dmitry Stogov [Wed, 16 Apr 2014 18:39:23 +0000 (22:39 +0400)]
op_array->filename and op_array->filename may be kept in opcache SHM
Dmitry Stogov [Wed, 16 Apr 2014 17:31:32 +0000 (21:31 +0400)]
Prevented modification of constant arguments
Dmitry Stogov [Wed, 16 Apr 2014 17:01:11 +0000 (21:01 +0400)]
Prevented unintended SHM modification
Dmitry Stogov [Wed, 16 Apr 2014 16:59:02 +0000 (20:59 +0400)]
Prevented modification of interned string
Nikita Popov [Wed, 16 Apr 2014 15:12:22 +0000 (17:12 +0200)]
Finish DOM port
All tests pass now
Nikita Popov [Wed, 16 Apr 2014 14:57:05 +0000 (16:57 +0200)]
Fix remaining XPath issue
Nikita Popov [Wed, 16 Apr 2014 13:52:59 +0000 (15:52 +0200)]
Mostly fix Dom XPath
Xinchen Hui [Wed, 16 Apr 2014 14:33:22 +0000 (22:33 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Wed, 16 Apr 2014 14:06:03 +0000 (18:06 +0400)]
Fixed reference counting
Dmitry Stogov [Wed, 16 Apr 2014 13:06:25 +0000 (17:06 +0400)]
Fixed reference counting
Dmitry Stogov [Wed, 16 Apr 2014 12:35:41 +0000 (16:35 +0400)]
Fixed typo
Dmitry Stogov [Wed, 16 Apr 2014 12:28:27 +0000 (16:28 +0400)]
Set reference values of reference counters of not-interned strings when they are restored from SHM
Dmitry Stogov [Wed, 16 Apr 2014 12:28:11 +0000 (16:28 +0400)]
Fixed reference counting
Dmitry Stogov [Wed, 16 Apr 2014 10:15:24 +0000 (14:15 +0400)]
Fixed reference counting
Xinchen Hui [Wed, 16 Apr 2014 10:08:08 +0000 (18:08 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Wed, 16 Apr 2014 09:59:49 +0000 (13:59 +0400)]
Fixed memory leaks