]> granicus.if.org Git - php/log
php
11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Tue, 22 Apr 2014 11:10:19 +0000 (19:10 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoFixed segfault cause EG(This) is modified
Xinchen Hui [Tue, 22 Apr 2014 11:08:58 +0000 (19:08 +0800)]
Fixed segfault cause EG(This) is modified

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Tue, 22 Apr 2014 10:38:00 +0000 (14:38 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoUSE ZEND_HASH_FOREACH_* macros
Xinchen Hui [Tue, 22 Apr 2014 10:29:56 +0000 (18:29 +0800)]
USE ZEND_HASH_FOREACH_* macros

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

11 years agoRefactor PDO (only compilable now)
Xinchen Hui [Tue, 22 Apr 2014 10:23:03 +0000 (18:23 +0800)]
Refactor PDO (only compilable now)

11 years agoFixed typo
Dmitry Stogov [Tue, 22 Apr 2014 09:11:07 +0000 (13:11 +0400)]
Fixed typo

11 years agoOptimized ZEND_SEND_REF
Dmitry Stogov [Tue, 22 Apr 2014 09:10:53 +0000 (13:10 +0400)]
Optimized ZEND_SEND_REF

11 years agoZEND_SEND_* optimization
Dmitry Stogov [Tue, 22 Apr 2014 08:33:00 +0000 (12:33 +0400)]
ZEND_SEND_* optimization

11 years agoCache knowledge about missing property_info
Dmitry Stogov [Tue, 22 Apr 2014 06:11:41 +0000 (10:11 +0400)]
Cache knowledge about missing property_info

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Tue, 22 Apr 2014 03:59:53 +0000 (11:59 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoUse shorter call chain
Dmitry Stogov [Mon, 21 Apr 2014 22:34:34 +0000 (02:34 +0400)]
Use shorter call chain

11 years agoUse fast comparison function
Dmitry Stogov [Mon, 21 Apr 2014 22:03:10 +0000 (02:03 +0400)]
Use fast comparison function

11 years agoChiper __autoload() function caching
Dmitry Stogov [Mon, 21 Apr 2014 21:41:40 +0000 (01:41 +0400)]
Chiper __autoload() function caching

11 years agoAvoid string duplication
Dmitry Stogov [Mon, 21 Apr 2014 21:41:09 +0000 (01:41 +0400)]
Avoid string duplication

11 years agozend_isset_isempty_dim_prop_obj_handler() split into separate handlers. (Actually...
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)

11 years agoReverted chunk committed by mistake
Dmitry Stogov [Mon, 21 Apr 2014 19:32:36 +0000 (23:32 +0400)]
Reverted chunk committed by mistake

11 years agoHandle references in "slow path"
Dmitry Stogov [Mon, 21 Apr 2014 19:30:19 +0000 (23:30 +0400)]
Handle references in "slow path"

11 years agoConvert zval_get_string() into "fast path" macro and "slow path" function
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

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

11 years agoFast path for pre/post inc/dec
Dmitry Stogov [Mon, 21 Apr 2014 17:38:44 +0000 (21:38 +0400)]
Fast path for pre/post inc/dec

11 years agoUse zval_get_string in a few more places
Nikita Popov [Mon, 21 Apr 2014 15:51:15 +0000 (17:51 +0200)]
Use zval_get_string in a few more places

11 years agoUse zval_get_string in print_zval and propagate TSRMLS
Nikita Popov [Mon, 21 Apr 2014 15:12:10 +0000 (17:12 +0200)]
Use zval_get_string in print_zval and propagate TSRMLS

11 years agoBring zval_get_string implement in line with make_printable_zval
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.

11 years agoCombine HashTable.flags and HashTable.nApplyCount into single 32-bit word
Dmitry Stogov [Mon, 21 Apr 2014 14:25:34 +0000 (18:25 +0400)]
Combine HashTable.flags and HashTable.nApplyCount into single 32-bit word

11 years agoCleanup
Dmitry Stogov [Mon, 21 Apr 2014 12:34:40 +0000 (16:34 +0400)]
Cleanup

11 years agoUse alloca() for temporary allocation
Dmitry Stogov [Mon, 21 Apr 2014 11:18:19 +0000 (15:18 +0400)]
Use alloca() for temporary allocation

11 years agoInline simple function
Dmitry Stogov [Mon, 21 Apr 2014 11:18:05 +0000 (15:18 +0400)]
Inline simple function

11 years agoRemoved duplicate code
Dmitry Stogov [Mon, 21 Apr 2014 11:17:48 +0000 (15:17 +0400)]
Removed duplicate code

11 years agoUse ZEND_HASH_FOREACH_* macros
Dmitry Stogov [Mon, 21 Apr 2014 10:20:05 +0000 (14:20 +0400)]
Use ZEND_HASH_FOREACH_* macros

11 years agoUse ZEND_HASH_FOEACH_* instead of zend_hash_apply_*
Dmitry Stogov [Mon, 21 Apr 2014 09:55:25 +0000 (13:55 +0400)]
Use ZEND_HASH_FOEACH_* instead of zend_hash_apply_*

11 years agoAvoid useles copy ctor
Dmitry Stogov [Mon, 21 Apr 2014 09:19:52 +0000 (13:19 +0400)]
Avoid useles copy ctor

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Mon, 21 Apr 2014 06:14:00 +0000 (14:14 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoMore ZEND_HASH_FOREACH_* related changes
Dmitry Stogov [Fri, 18 Apr 2014 20:08:14 +0000 (00:08 +0400)]
More ZEND_HASH_FOREACH_* related changes

11 years agoZEND_HASH_FOREACH_* usage
Dmitry Stogov [Fri, 18 Apr 2014 17:49:07 +0000 (21:49 +0400)]
ZEND_HASH_FOREACH_* usage

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

11 years agoRevert "Fix include/eval with custom zend_execute"
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.

11 years agoRevert "Fix zend_eval_string (and as such assert + dom tests)"
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.

11 years agoUse ZEND_FETCH_FOREACH_* macros to iterate over HashTables instead of zend_hash_move_...
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.

11 years agoFix zend_eval_string (and as such assert + dom tests)
Nikita Popov [Fri, 18 Apr 2014 12:35:59 +0000 (14:35 +0200)]
Fix zend_eval_string (and as such assert + dom tests)

11 years agoFix include/eval with custom zend_execute
Nikita Popov [Fri, 18 Apr 2014 11:44:19 +0000 (13:44 +0200)]
Fix include/eval with custom zend_execute

11 years agoOptimized zend_leave_helper()
Dmitry Stogov [Fri, 18 Apr 2014 09:46:36 +0000 (13:46 +0400)]
Optimized zend_leave_helper()

11 years agoFix libxml external entity loading
Nikita Popov [Thu, 17 Apr 2014 22:09:41 +0000 (00:09 +0200)]
Fix libxml external entity loading

11 years agoMove libxml_destroy_fci to RSHUTDOWN
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...

11 years agoFix libxml/sxe/dom node import/export
Nikita Popov [Thu, 17 Apr 2014 21:29:35 +0000 (23:29 +0200)]
Fix libxml/sxe/dom node import/export

Also fix sxe zts.

11 years agoOptimize CASE(TRUE, X) into BOOL(X) (this pattern affects wordpress)
Dmitry Stogov [Thu, 17 Apr 2014 17:15:02 +0000 (21:15 +0400)]
Optimize CASE(TRUE, X) into BOOL(X) (this pattern affects wordpress)

11 years agoFixed support for references
Dmitry Stogov [Thu, 17 Apr 2014 13:21:59 +0000 (17:21 +0400)]
Fixed support for references

11 years agoCache op_array->run_time_cache in zend_execute_data for faster access
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

11 years agoUse local variables instead of opline operands to access cache_slots
Dmitry Stogov [Thu, 17 Apr 2014 12:10:16 +0000 (16:10 +0400)]
Use local variables instead of opline operands to access cache_slots

11 years agoMoved zend_literal->cache_slot right into zval.
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.

11 years agoFixed ZEND_CAST related optimizations (now it returns IS_VAR instead of IS_TMP_VAR)
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)

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Wed, 16 Apr 2014 22:12:52 +0000 (02:12 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoFixed support for unspecialized and GOTO and SWITCH executor
Dmitry Stogov [Wed, 16 Apr 2014 22:12:06 +0000 (02:12 +0400)]
Fixed support for unspecialized and GOTO and SWITCH executor

11 years agoDon't copy in ZEND_CAST if type is already correct
Nikita Popov [Wed, 16 Apr 2014 20:39:01 +0000 (22:39 +0200)]
Don't copy in ZEND_CAST if type is already correct

11 years agoPrevented modification of original name
Dmitry Stogov [Wed, 16 Apr 2014 18:42:37 +0000 (22:42 +0400)]
Prevented modification of original name

11 years agoPrevented modification of interned string
Dmitry Stogov [Wed, 16 Apr 2014 18:42:15 +0000 (22:42 +0400)]
Prevented modification of interned string

11 years agoop_array->function_name, op_array->doc_comments and op_array->filename may be kept...
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

11 years agoop_array->filename 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

11 years agoPrevented modification of constant arguments
Dmitry Stogov [Wed, 16 Apr 2014 17:31:32 +0000 (21:31 +0400)]
Prevented modification of constant arguments

11 years agoPrevented unintended SHM modification
Dmitry Stogov [Wed, 16 Apr 2014 17:01:11 +0000 (21:01 +0400)]
Prevented unintended SHM modification

11 years agoPrevented modification of interned string
Dmitry Stogov [Wed, 16 Apr 2014 16:59:02 +0000 (20:59 +0400)]
Prevented modification of interned string

11 years agoFinish DOM port
Nikita Popov [Wed, 16 Apr 2014 15:12:22 +0000 (17:12 +0200)]
Finish DOM port

All tests pass now

11 years agoFix remaining XPath issue
Nikita Popov [Wed, 16 Apr 2014 14:57:05 +0000 (16:57 +0200)]
Fix remaining XPath issue

11 years agoMostly fix Dom XPath
Nikita Popov [Wed, 16 Apr 2014 13:52:59 +0000 (15:52 +0200)]
Mostly fix Dom XPath

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Xinchen Hui [Wed, 16 Apr 2014 14:33:22 +0000 (22:33 +0800)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

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

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

11 years agoFixed typo
Dmitry Stogov [Wed, 16 Apr 2014 12:35:41 +0000 (16:35 +0400)]
Fixed typo

11 years agoSet reference values of reference counters of not-interned strings when they are...
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

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

11 years agoFixed reference counting
Dmitry Stogov [Wed, 16 Apr 2014 10:15:24 +0000 (14:15 +0400)]
Fixed reference counting

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

11 years agoFixed memory leaks
Dmitry Stogov [Wed, 16 Apr 2014 09:59:49 +0000 (13:59 +0400)]
Fixed memory leaks

11 years agoFixed non-interned strings refcounting
Dmitry Stogov [Wed, 16 Apr 2014 09:36:38 +0000 (13:36 +0400)]
Fixed non-interned strings refcounting

11 years agoRefactor PDO (incompleted)
Xinchen Hui [Wed, 16 Apr 2014 09:28:11 +0000 (17:28 +0800)]
Refactor PDO (incompleted)

11 years agoFixed reference counting
Dmitry Stogov [Wed, 16 Apr 2014 08:33:25 +0000 (12:33 +0400)]
Fixed reference counting

11 years agoRemoved invalid STR_RELEASE()
Dmitry Stogov [Wed, 16 Apr 2014 08:28:20 +0000 (12:28 +0400)]
Removed invalid STR_RELEASE()

11 years agoFixed reference support
Dmitry Stogov [Wed, 16 Apr 2014 08:08:16 +0000 (12:08 +0400)]
Fixed reference support

11 years agoFixed refcounting
Dmitry Stogov [Wed, 16 Apr 2014 08:07:58 +0000 (12:07 +0400)]
Fixed refcounting

11 years agoFixed zend_string/char mess
Dmitry Stogov [Wed, 16 Apr 2014 08:07:21 +0000 (12:07 +0400)]
Fixed zend_string/char mess

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

11 years agoCleanup
Dmitry Stogov [Tue, 15 Apr 2014 21:45:40 +0000 (01:45 +0400)]
Cleanup

11 years agoMake DOM mostly work
Nikita Popov [Tue, 15 Apr 2014 19:14:40 +0000 (21:14 +0200)]
Make DOM mostly work

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Tue, 15 Apr 2014 18:44:21 +0000 (22:44 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoReduced memory realocations
Dmitry Stogov [Tue, 15 Apr 2014 18:43:18 +0000 (22:43 +0400)]
Reduced memory realocations

11 years agoMake DOM compile
Nikita Popov [Tue, 15 Apr 2014 18:30:41 +0000 (20:30 +0200)]
Make DOM compile

Just make it compile, not work yet...

11 years agoAdd functions for extracting long/double/string from zval
Nikita Popov [Tue, 15 Apr 2014 16:33:38 +0000 (18:33 +0200)]
Add functions for extracting long/double/string from zval

These function get the long / double / string value of a zval with
usual cast semantics, but without actually modifying the zval.

Didn't go on a killing spree for convert_to_* yet...

11 years agoStart working on dom extension
Nikita Popov [Tue, 15 Apr 2014 15:41:13 +0000 (17:41 +0200)]
Start working on dom extension

Nowhere near compiling yet...

11 years agoUse zend_string* instead of char*
Dmitry Stogov [Tue, 15 Apr 2014 18:10:39 +0000 (22:10 +0400)]
Use zend_string* instead of char*

11 years agoCleanup (2-nd round)
Dmitry Stogov [Tue, 15 Apr 2014 17:56:30 +0000 (21:56 +0400)]
Cleanup (2-nd round)

11 years agoFixed memory leak
Dmitry Stogov [Tue, 15 Apr 2014 11:50:34 +0000 (15:50 +0400)]
Fixed memory leak

11 years agoCleanup (1-st round)
Dmitry Stogov [Tue, 15 Apr 2014 11:40:40 +0000 (15:40 +0400)]
Cleanup (1-st round)

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

11 years agoFixed invaid write/read
Xinchen Hui [Tue, 15 Apr 2014 06:38:38 +0000 (14:38 +0800)]
Fixed invaid write/read

11 years agoFixed return uninitialized_zval
Xinchen Hui [Tue, 15 Apr 2014 03:10:39 +0000 (11:10 +0800)]
Fixed return uninitialized_zval

11 years agoFixed Typo
Xinchen Hui [Tue, 15 Apr 2014 03:09:04 +0000 (11:09 +0800)]
Fixed Typo

11 years agoFixed zend_object_get_t in simpleXML
Xinchen Hui [Tue, 15 Apr 2014 03:05:03 +0000 (11:05 +0800)]
Fixed zend_object_get_t in simpleXML

11 years agoFixed test (support for MarinaDB)
Dmitry Stogov [Mon, 14 Apr 2014 21:27:21 +0000 (01:27 +0400)]
Fixed test (support for MarinaDB)

11 years agoFixed reference counting
Dmitry Stogov [Mon, 14 Apr 2014 21:16:09 +0000 (01:16 +0400)]
Fixed reference counting

11 years agoFixed memory leak
Dmitry Stogov [Mon, 14 Apr 2014 20:21:41 +0000 (00:21 +0400)]
Fixed memory leak