]> granicus.if.org Git - php/log
php
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 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 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 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 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

11 years agoFixed memory leak
Dmitry Stogov [Mon, 14 Apr 2014 19:53:25 +0000 (23:53 +0400)]
Fixed memory leak

11 years agoMerge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Dmitry Stogov [Mon, 14 Apr 2014 19:01:02 +0000 (23:01 +0400)]
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2

11 years agoThe test works out of the box
Dmitry Stogov [Mon, 14 Apr 2014 18:43:33 +0000 (22:43 +0400)]
The test works out of the box

11 years agoFixed nested GC calls (valgrind error in Zend/tests/gc_016.phpt)
Dmitry Stogov [Mon, 14 Apr 2014 18:41:42 +0000 (22:41 +0400)]
Fixed nested GC calls (valgrind error in Zend/tests/gc_016.phpt)

11 years agoFixed SXE iterator(14 tests fail)
Xinchen Hui [Mon, 14 Apr 2014 16:36:32 +0000 (00:36 +0800)]
Fixed SXE iterator(14 tests fail)

11 years agoFixed sxe object clone
Xinchen Hui [Mon, 14 Apr 2014 16:10:59 +0000 (00:10 +0800)]
Fixed sxe object clone

11 years agoFixed double free
Xinchen Hui [Mon, 14 Apr 2014 16:06:54 +0000 (00:06 +0800)]
Fixed double free

11 years agoFixed libxml handling default context
Xinchen Hui [Mon, 14 Apr 2014 15:40:21 +0000 (23:40 +0800)]
Fixed libxml handling default context

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

11 years agoRefactor simpleXML (compilable, but incompleted)
Xinchen Hui [Mon, 14 Apr 2014 11:27:22 +0000 (19:27 +0800)]
Refactor simpleXML (compilable, but incompleted)

11 years agoFixed passing arguments by reference into array_walk() callbacks.
Dmitry Stogov [Mon, 14 Apr 2014 11:11:05 +0000 (15:11 +0400)]
Fixed passing arguments by reference into array_walk() callbacks.

11 years agoFixed interface constants inheritance.
Dmitry Stogov [Mon, 14 Apr 2014 09:24:43 +0000 (13:24 +0400)]
Fixed interface constants inheritance.
Now we use IS_REFERENCE for inhereted class constants.
I might miss some edje cases.

11 years agoCopy varname before unset
Nikita Popov [Sun, 13 Apr 2014 13:00:32 +0000 (15:00 +0200)]
Copy varname before unset

Otherwise we get issues when the varname variable coincides with
the variable that is deleted.

11 years agoTemporary fix for Zend/tests/bug46238.phpt
Dmitry Stogov [Fri, 11 Apr 2014 20:50:36 +0000 (00:50 +0400)]
Temporary fix for Zend/tests/bug46238.phpt

11 years agoFixed test (now string data allocated together with zend_string structure)
Dmitry Stogov [Fri, 11 Apr 2014 19:25:50 +0000 (23:25 +0400)]
Fixed test (now string data allocated together with zend_string structure)

11 years agoFixed test (order of variables doesn't mater)
Dmitry Stogov [Fri, 11 Apr 2014 19:04:47 +0000 (23:04 +0400)]
Fixed test (order of variables doesn't mater)

11 years agoFix argument unpacking
Nikita Popov [Fri, 11 Apr 2014 17:53:14 +0000 (19:53 +0200)]
Fix argument unpacking

11 years agofor some reason gcc -O2 compiled the previous code in unexpected way
Dmitry Stogov [Fri, 11 Apr 2014 14:16:03 +0000 (18:16 +0400)]
for some reason gcc -O2 compiled the previous code in unexpected way

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